Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Allow enter to select items from combobox's list (#7351)
- Loading branch information
Showing
with
3 additions
and
1 deletion.
-
+3
−1
src/gui/guiFormSpecMenu.cpp
|
@@ -2981,7 +2981,9 @@ bool GUIFormSpecMenu::preprocessEvent(const SEvent& event) |
|
|
gui::IGUIElement *focused = Environment->getFocus(); |
|
|
if (focused && isMyChild(focused) && |
|
|
(focused->getType() == gui::EGUIET_LIST_BOX || |
|
|
focused->getType() == gui::EGUIET_CHECK_BOX)) { |
|
|
focused->getType() == gui::EGUIET_CHECK_BOX) && |
|
|
(focused->getParent()->getType() != gui::EGUIET_COMBO_BOX || |
|
|
event.KeyInput.Key != KEY_RETURN)) { |
|
|
OnEvent(event); |
|
|
return true; |
|
|
} |
|
|