Showing the changes to libraries/script-engine/src/EventTypes.cpp (1 of 8 files). Show all
Unified · Split
| @@ -129,7 +129,7 @@ bool KeyEvent::operator==(const KeyEvent& other) const { · 128 unmodified lines | ||
| 129 | 129 | |
| 130 | 130 | KeyEvent::operator QKeySequence() const { |
| 131 | 131 | int resultCode = 0; |
| 132 | − if (text >= "a" && text <= "z") { | |
| 132 | + if (text.size() == 1 && text >= "a" && text <= "z") { | |
| 133 | 133 | resultCode = text.toUpper().at(0).unicode(); |
| 134 | 134 | } else { |
| 135 | 135 | resultCode = key; |