cisco-open-source / qtwebdriver

WebDriver implementation for Qt
https://github.com/cisco-open-source/qtwebdriver/wiki
197 stars 59 forks source link

Keys.ENTER and Keys.RETURN should not return same keycode on server side #5

Closed hekra01 closed 9 years ago

hekra01 commented 9 years ago

fix by

--- a/src/webdriver/extension_qt/q_key_converter.cc
+++ b/src/webdriver/extension_qt/q_key_converter.cc
@@ -34,7 +34,7 @@ const Qt::Key QKeyConverter::kSpecialWebDriverKeys[] = {
     Qt::Key_Tab,
     Qt::Key_Clear,
     Qt::Key_Return,
-    Qt::Key_Return,
+    Qt::Key_Enter,
     Qt::Key_Shift,
     Qt::Key_Control,
     Qt::Key_Menu,
hekra01 commented 9 years ago

https://github.com/cisco-open-source/qtwebdriver/commit/fb8ed3dc561021c7b1353ca7da94773a97d1f596