1
0
镜像自地址 https://github.com/luanti-org/luanti.git 已同步 2025-11-06 02:05:30 +01:00

Allow enter to select items from combobox's list (#7351)

这个提交包含在:
Rob Blanckaert
2018-07-28 03:58:16 -07:00
提交者 SmallJoker
父节点 e8aad2ee00
当前提交 2b83af783b

查看文件

@@ -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;
}