mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
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:
parent
0c9f04bc71
commit
4edbc29e72
@ -7,7 +7,15 @@
|
|||||||
40 : 'down',
|
40 : 'down',
|
||||||
46 : 'del',
|
46 : 'del',
|
||||||
189 : '-',
|
189 : '-',
|
||||||
|
// 109 for numpad -
|
||||||
|
109 : '-',
|
||||||
|
// 173 on Firefox for minus key
|
||||||
|
173 : '-',
|
||||||
187 : '+',
|
187 : '+',
|
||||||
|
// 107 for numpad +
|
||||||
|
107 : '+',
|
||||||
|
// 61 on Firefox for =/+ key
|
||||||
|
61 : '+',
|
||||||
188 : '<',
|
188 : '<',
|
||||||
190 : '>'
|
190 : '>'
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user