Skip to content

Commit 12f77b9

Browse files
author
hekra
committed
convert of undefined keys
1 parent f3f0538 commit 12f77b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webdriver/extension_qt/q_key_converter.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ bool QKeyConverter::KeyCodeFromSpecialWebDriverKey(char16 key, Qt::Key* key_code
119119
*key_code = kSpecialWebDriverKeys[index];
120120
else {
121121
// Key_Escape = 0x01000000. Offset from this for undefined keys
122-
int qtIndex = static_cast<int>(Qt::Key_Escape);
123-
*key_code = static_cast<Qt::Key>(qtIndex + index);
122+
int qtValue = 0x01000000 + index;
123+
*key_code = static_cast<Qt::Key>(qtValue);
124124
}
125125
return is_special_key;
126126
}

0 commit comments

Comments
 (0)