mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
handle arrow keys in global hotkey (#913)
This commit is contained in:
@@ -35,6 +35,10 @@ export const hotkeyToElectronAccelerator = (hotkey: string) => {
|
|||||||
let accelerator = hotkey;
|
let accelerator = hotkey;
|
||||||
|
|
||||||
const replacements = {
|
const replacements = {
|
||||||
|
arrowdown: 'Down',
|
||||||
|
arrowleft: 'Left',
|
||||||
|
arrowright: 'Right',
|
||||||
|
arrowup: 'Up',
|
||||||
mod: 'CmdOrCtrl',
|
mod: 'CmdOrCtrl',
|
||||||
numpad: 'num',
|
numpad: 'num',
|
||||||
numpadadd: 'numadd',
|
numpadadd: 'numadd',
|
||||||
|
|||||||
Reference in New Issue
Block a user