skhd icon indicating copy to clipboard operation
skhd copied to clipboard

Number key are undefined

Open obito opened this issue 1 year ago • 5 comments

While trying to set key as a number(0-9), the keycode is set as 0x00, which is obviously wrong.

A work-around of this would be to set directly the keycode as the key instead of the number.

Here is an output of skhd -V:

hotkey :: #62 {
	mod: 'cmd'
	mod: 'alt'
	key: '4' (0x00)
	cmd: 'yabai -m space --focus  4 || skhd -k "ctrl + alt + cmd - 4"'
}
hotkey :: #63 {
	mod: 'cmd'
	mod: 'alt'
	key: '5' (0x00)
	cmd: 'yabai -m space --focus  5 || skhd -k "ctrl + alt + cmd - 5"'
}
hotkey :: #64 {
	mod: 'cmd'
	mod: 'alt'
	key: '0x16' (0x16)
	cmd: 'yabai -m space --focus  6 || skhd -k "ctrl + alt + cmd - 6"'
}
hotkey :: #65 {
	mod: 'cmd'
	mod: 'alt'
	key: '7' (0x00)
	cmd: 'yabai -m space --focus  7 || skhd -k "ctrl + alt + cmd - 7"'
}
hotkey :: #66 {
	mod: 'cmd'
	mod: 'alt'
	key: '8' (0x00)
	cmd: 'yabai -m space --focus  8 || skhd -k "ctrl + alt + cmd - 8"'
}

obito avatar Sep 19 '22 19:09 obito

What's your input source locale? Your samples have worked fine for me for like 7 years at this point.

koekeishiya avatar Sep 19 '22 20:09 koekeishiya

What's your input source locale? Your samples have worked fine for me for like 7 years at this point.

my keyboard is set as fr-FR and my keyboard is AZERTY. skhd -o returns the correct keycode btw.

obito avatar Sep 19 '22 20:09 obito

Same problem here with a french macbook pro (azerty keyboard).

HerveMARTIN avatar Nov 03 '22 21:11 HerveMARTIN

Same problem here with a french macbook pro (azerty keyboard).

That was with my Macbook Pro with azerty keyboard, I don't have time to do a PR to fix that, but just use skhd -o and set the keycode manually in the config file. E.g: 0x16

obito avatar Nov 03 '22 21:11 obito

Same here with an Azerty keyboard. Works fine with keycode

nlamirault avatar Feb 01 '23 15:02 nlamirault