b4n requested changes on this pull request.

This looks great, and actually fixes some things on Linux as well, as e.g. 
default keybindings like <kbd>&lt;Primary&gt;1</kbd> for custom commands didn't 
work before on the French layouts where `1` is <kbd>&lt;Shift&gt;&amp;</kbd> 
(so one had to use <kbd>&lt;Primary&gt;&lt;Shift&gt;1</kbd>).  Nice!
I'm not very confident, but it might also help fixing some problems we had with 
Russian layouts on Windows?  I'm afraid I remember something a lot more 
complicated had to be done, though.

However, we need an upgrade path for current keybindings from 
*keybindings.conf*, because right now it breaks any user-defined keybinding 
that is affected by the change – e.g. in my case 
<kbd>&lt;Primary&gt;&lt;Shift&gt;1</kbd> (which would now be 
<kbd>&lt;Primary&gt;1</kbd>), <kbd>&lt;Primary&gt;&lt;Shift&gt;greater</kbd> 
(<kbd>&lt;Primary&gt;greater</kbd>), etc.

>  {
-       guint state, keyval;
+       GdkModifierType consumed;
+       GdkKeymap *keymap = gdk_keymap_get_default();

ideally would use `gdk_keymap_get_for_display()`, probably on 
`gdk_window_get_display(ev->window)`

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1633#pullrequestreview-68133888

Reply via email to