From b9e177f800dbda880e8466e40c60dd21b1c6280d Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Tue, 10 Oct 2017 21:33:10 +0900 Subject: ignore meta keys on input --- src/content/components/content-input.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/content/components/content-input.js b/src/content/components/content-input.js index 9568caf..0ba4bcb 100644 --- a/src/content/components/content-input.js +++ b/src/content/components/content-input.js @@ -42,7 +42,8 @@ export default class ContentInputComponent { } return; } - if (e.key === 'OS') { + if (['Shift', 'Control', 'Alt', 'OS'].includes(e.key)) { + // pressing only meta key is ignored return; } -- cgit v1.2.3