ignore meta keys on input

This commit is contained in:
Shin'ya Ueoka 2017-10-10 21:33:10 +09:00
parent 01dfb15654
commit b9e177f800

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;
} }