prati0100 / git-gui

Tcl/Tk based UI for Git. I am currently acting as the project's maintainer.
161 stars 87 forks source link

Check for Shift separately when binding keys. #11

Open prati0100 opened 4 years ago

prati0100 commented 4 years ago

Right now, if caps lock is pressed, the behavior is the same as when shift is pressed. So, if we add a binding for Ctrl-a, we also need to add one for Ctrl-A. Otherwise, Ctrl-a won't work when Caps Lock is pressed, since that is recorded as Ctrl-A.

This means that we can't use shift as a modifier. So, it might be a good idea to remove that limitation, and do the same thing regardless of if Caps Lock is pressed or not.

I'm not sure how something like this can be done. If Tk's bind function provides a way to do this, it would be great, but we might have to end up rolling our own hack on top of bind.