Shortcut for toggling capital/small letters are not working on macOS
frlan opened this issue · 2 comments
The keystroke does not work here
09:12:50.596197: Geany INFO : Geany 1.38, de_DE.UTF-8
09:12:50.596222: Geany INFO : GTK 3.24.30, GLib 2.68.0
09:12:50.596230: Geany INFO : OS: macOS
09:12:50.596237: Geany INFO : System data dir: /Applications/Geany.app/Contents/Resources/share/geany
09:12:50.596244: Geany INFO : User config dir: /Users/flanitz/.config/geany
09:12:50.597018: GLib-GIO DEBUG : _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
09:12:50.841337: Geany INFO : Loaded GTK+ CSS theme '/Applications/Geany.app/Contents/Resources/share/geany/geany.css'
09:12:50.841730: Geany INFO : Loaded GTK+ CSS theme '/Applications/Geany.app/Contents/Resources/share/geany/geany-3.20.css'
09:12:50.847527: Geany INFO : System plugin path: /Applications/Geany.app/Contents/Resources/lib/geany
It looks like the combination Option+U
produces another character on the Mac. When you set the same keybinding in Settings (Option+Command+U
), the result is this:
and the keybinding works.
I'm wondering if geany/geany#1633 would fix the issue.
I don't think its fixable, see this comment and the GTK bugs in the comment two below (if they havn't been deleted) which actually ended up admitting that Geany can't normalise keycodes across layouts and possibly across OSes, GTK returns different keyvals and keynames for the same key, depending on the OS and the locale dependent keyboard layout.
IIUC this issue correctly, the OP is operating with a German locale and therefore keyboard layout, but your distributed keybindings are for an English keyboard. So they may not compare for all key combinations.
The problem might be helped if Geany used the hardware keycode, but I don't know how portable that its, and there is no keyname equivalent to save and restore it.