Fix #281 : Zoom keyboard shortcuts on Firefox

Keycode not consistent on FF :
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode

Also added support for numpad +/- keys.
This commit is contained in:
jdescottes 2015-05-08 22:32:18 +02:00
parent 0c9f04bc71
commit 4edbc29e72

View File

@ -7,7 +7,15 @@
40 : 'down',
46 : 'del',
189 : '-',
// 109 for numpad -
109 : '-',
// 173 on Firefox for minus key
173 : '-',
187 : '+',
// 107 for numpad +
107 : '+',
// 61 on Firefox for =/+ key
61 : '+',
188 : '<',
190 : '>'
};