geany-osx icon indicating copy to clipboard operation
geany-osx copied to clipboard

Shortcut for toggling capital/small letters are not working on macOS

Open frlan opened this issue 3 years ago • 2 comments
trafficstars

The keystroke does not work here

Bildschirmfoto 2022-08-16 um 10 37 21

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

frlan avatar Aug 16 '22 08:08 frlan

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:

Screen Shot 2022-08-27 at 22 09 33

and the keybinding works.

I'm wondering if https://github.com/geany/geany/pull/1633 would fix the issue.

techee avatar Aug 27 '22 20:08 techee

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.

elextr avatar Aug 27 '22 22:08 elextr