QKeyEvent doesn't have a method that returns a QKeySequence. You can only get an int for the key and the modifiers all monkey piled into another binary field. You can't construct a QKeySequence from this because order is important when comparing strings.
Code: Select all
edtWord: Ctrl+, Num+, +
keyStr: +, Ctrl+Num+ key: 43 modifiers: 603979776
I'm going to noodle on this some more. A quick look at the existing key stuff in Diamond shows the design opted to connect keyboard shortcuts to the menu. That's fine for the first key combination, but not the second. What I mean by that is you can't have two keyboard shortcuts on the same menu item.
I would think (and I've been warned about thinking before) that the simplest thing would be to add a modifiers() method to QKeySequence