3snowp7im / urn

Split tracker / timer with GTK+ frontend
GNU General Public License v3.0
126 stars 36 forks source link

Handle keybind modifier keys correctly #14

Closed jangler closed 8 years ago

jangler commented 8 years ago

The readme states that keybinds should be parseable by gtk_accelerator_parse, so I thought that doing something like <ctrl><shift>space would work for a keybind, since that's a valid gtk_accelerator_parse string. Not so!

I replaced the string comparisons in urn_app_window_keypress with comparisons against parsed keyval and state (modifier key) data.