Skip to content

Commit

Permalink
convert of undefined keys
Browse files Browse the repository at this point in the history
  • Loading branch information
hekra committed Jun 16, 2015
1 parent f3f0538 commit 12f77b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webdriver/extension_qt/q_key_converter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ bool QKeyConverter::KeyCodeFromSpecialWebDriverKey(char16 key, Qt::Key* key_code
*key_code = kSpecialWebDriverKeys[index];
else {
// Key_Escape = 0x01000000. Offset from this for undefined keys
int qtIndex = static_cast<int>(Qt::Key_Escape);
*key_code = static_cast<Qt::Key>(qtIndex + index);
int qtValue = 0x01000000 + index;
*key_code = static_cast<Qt::Key>(qtValue);
}
return is_special_key;
}
Expand Down

0 comments on commit 12f77b9

Please sign in to comment.