Merge pull request #45 from ueokande/fix-38

Ignore meta keys on input
This commit is contained in:
Shin'ya Ueoka 2017-10-10 21:54:38 +09:00 committed by GitHub
commit 77cc377803

View file

@ -42,7 +42,8 @@ export default class ContentInputComponent {
} }
return; return;
} }
if (e.key === 'OS') { if (['Shift', 'Control', 'Alt', 'OS'].includes(e.key)) {
// pressing only meta key is ignored
return; return;
} }