diff options
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/InputDriver.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/content/InputDriver.ts b/src/content/InputDriver.ts index cddc825..0472088 100644 --- a/src/content/InputDriver.ts +++ b/src/content/InputDriver.ts @@ -2,7 +2,13 @@ import * as dom from '../shared/utils/dom'; import Key, * as keys from './domains/Key'; const cancelKey = (e: KeyboardEvent): boolean => { - return e.key === 'Escape' || e.key === '[' && e.ctrlKey; + if (e.key === 'Escape') { + return true; + } + if (e.key === '[' && e.ctrlKey) { + return true; + } + return false; }; export default class InputDriver { |