镜像自地址
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)
这个提交包含在:
@@ -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;
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户