Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/term.js
Original file line number Diff line number Diff line change
Expand Up @@ -5633,6 +5633,10 @@ function off(el, type, handler, capture) {
}

function cancel(ev) {
// if metaKey (command/apple key on Mac) is pressed then don't cancel event
// this makes stuff like command+L to focus URL bar work
if (ev.metaKey) return

if (ev.preventDefault) ev.preventDefault();
ev.returnValue = false;
if (ev.stopPropagation) ev.stopPropagation();
Expand Down