awesome-raccoons / gqt

MIT License
0 stars 0 forks source link

Keyboard shortcuts require shift key to be pressed #60

Open nryeng opened 9 years ago

nryeng commented 9 years ago

Keyboard shortcuts were added in #46, but they require the shift key to be pressed, e.g. Ctrl+Shift+N instead of Ctrl-N.

johannbm commented 9 years ago

So we have been experimenting with this a little, and it's really hard to debug and know why it doesn't work for you.

It works for us using windows, because the current checking looks for event.isControlDown + text = "n", for creating new layer. However, on Mac the text = " " in combination with control, while the keyCode still is Code.N.

It's hard for us to know what the event triggered for you is. None of us use Linux.

nryeng commented 9 years ago

Check event.getCode(). It's KeyCode.N for N, KeyCode.D for D, etc.