History

implement support for menu item positioning

ZappoMan committed 12 years ago

Commit 00480991 parent 0b6e81b8 files · +111 −61Browse files

Showing the changes to libraries/script-engine/src/EventTypes.cpp (1 of 8 files). Show all

Unified · Split

libraries/script-engine/src/EventTypes.cpp+1−1
@@ -129,7 +129,7 @@ bool KeyEvent::operator==(const KeyEvent& other) const { · 128 unmodified lines
129129
130130 KeyEvent::operator QKeySequence() const {
131131 int resultCode = 0;
132− if (text >= "a" && text <= "z") {
132+ if (text.size() == 1 && text >= "a" && text <= "z") {
133133 resultCode = text.toUpper().at(0).unicode();
134134 } else {
135135 resultCode = key;