remove deprecated property in KeyboardEvent

This commit is contained in:
Shin'ya Ueoka 2017-10-03 20:58:50 +09:00
parent eff8d9a83e
commit 5ac1f60ece
10 changed files with 32 additions and 87 deletions

View file

@ -1,21 +0,0 @@
const asKeymapChars = (keys) => {
return keys.map((k) => {
let c = String.fromCharCode(k.code);
if (k.ctrl) {
return '<C-' + c.toUpperCase() + '>';
}
return c;
}).join('');
};
const asCaretChars = (keys) => {
return keys.map((k) => {
let c = String.fromCharCode(k.code);
if (k.ctrl) {
return '^' + c.toUpperCase();
}
return c;
}).join('');
};
export { asKeymapChars, asCaretChars };