mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 14:25:30 +02:00
Added support for meta
key for glance
This commit is contained in:
parent
ed7ce7c8d3
commit
fb33d61d41
1 changed files with 4 additions and 2 deletions
|
@ -52,7 +52,7 @@ export class ZenGlanceChild extends JSWindowActorChild {
|
|||
}
|
||||
|
||||
ensureOnlyKeyModifiers(event) {
|
||||
return !(event.ctrlKey ^ event.altKey ^ event.shiftKey);
|
||||
return !(event.ctrlKey ^ event.altKey ^ event.shiftKey ^ event.metaKey);
|
||||
}
|
||||
|
||||
openGlance(target) {
|
||||
|
@ -102,7 +102,9 @@ export class ZenGlanceChild extends JSWindowActorChild {
|
|||
return;
|
||||
} else if (activationMethod === 'shift' && !event.shiftKey) {
|
||||
return;
|
||||
} else if (activationMethod === 'mantain' || typeof activationMethod === 'undefined') {
|
||||
} else if (activationMethod === 'meta' && !event.metaKey) {
|
||||
return;
|
||||
}else if (activationMethod === 'mantain' || typeof activationMethod === 'undefined') {
|
||||
return;
|
||||
}
|
||||
// get closest A element
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue