mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Fix a regression introduced by #1058
Such regression broke the character composition/paste on macOS
This commit is contained in:
parent
e31f975f78
commit
6508d05e5f
2 changed files with 1 additions and 3 deletions
|
|
@ -102,7 +102,6 @@ for (const key in allAccelerators) {
|
|||
// decides if a keybard event is a Hyper Accelerator
|
||||
function isAccelerator(e) {
|
||||
let keys = [];
|
||||
console.log(e);
|
||||
if (!e.ctrlKey && !e.metaKey && !e.altKey) {
|
||||
// all accelerators needs Ctrl or Cmd or Alt
|
||||
return false;
|
||||
|
|
@ -130,7 +129,6 @@ function isAccelerator(e) {
|
|||
}
|
||||
|
||||
keys = keys.join('+');
|
||||
|
||||
return cache.includes(keys);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ hterm.Keyboard.prototype.onKeyDown_ = function (e) {
|
|||
e.preventDefault();
|
||||
}
|
||||
|
||||
if (isAccelerator(e)) {
|
||||
if (e.altKey || e.metaKey || isAccelerator(e)) {
|
||||
// hterm shouldn't consume a hyper accelerator
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue