From 12f77b92d1c4db162bd5b42fe484589f5b4031c8 Mon Sep 17 00:00:00 2001 From: hekra Date: Tue, 16 Jun 2015 22:12:48 +0200 Subject: [PATCH] convert of undefined keys --- src/webdriver/extension_qt/q_key_converter.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webdriver/extension_qt/q_key_converter.cc b/src/webdriver/extension_qt/q_key_converter.cc index 89133097..feb546eb 100644 --- a/src/webdriver/extension_qt/q_key_converter.cc +++ b/src/webdriver/extension_qt/q_key_converter.cc @@ -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(Qt::Key_Escape); - *key_code = static_cast(qtIndex + index); + int qtValue = 0x01000000 + index; + *key_code = static_cast(qtValue); } return is_special_key; }