Skip to content

Commit fb8ed3d

Browse files
author
hekra
committed
distinguish return from enter
1 parent 7b0b955 commit fb8ed3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/webdriver/extension_qt/q_key_converter.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const Qt::Key QKeyConverter::kSpecialWebDriverKeys[] = {
3434
Qt::Key_Tab,
3535
Qt::Key_Clear,
3636
Qt::Key_Return,
37-
Qt::Key_Return,
37+
Qt::Key_Enter,
3838
Qt::Key_Shift,
3939
Qt::Key_Control,
4040
Qt::Key_Menu,
@@ -242,7 +242,7 @@ bool QKeyConverter::ConvertKeysToWebKeyEvents(const string16& client_keys,
242242
return false;
243243
}
244244

245-
if (key_code == Qt::Key_Return || key_code == Qt::Key_Space ||
245+
if (key_code == Qt::Key_Return || key_code == Qt::Key_Enter || key_code == Qt::Key_Space ||
246246
key_code == Qt::Key_Asterisk || key_code == Qt::Key_Plus ||
247247
key_code == Qt::Key_Comma || key_code == Qt::Key_Minus ||
248248
key_code == Qt::Key_Period || key_code == Qt::Key_Slash ||

0 commit comments

Comments
 (0)