Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
frlan opened this issue Aug 16, 2022 · 2 comments
Open

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

frlan opened this issue Aug 16, 2022 · 2 comments

Comments

@frlan
Copy link
Member

frlan commented Aug 16, 2022

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
@techee
Copy link
Member

techee commented Aug 27, 2022

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 geany/geany#1633 would fix the issue.

@elextr
Copy link
Member

elextr commented Aug 27, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants