Fix key event processing issue.

Fixes #17712
This commit is contained in:
Henrik Rydgård
2023-07-14 12:01:38 +02:00
parent 4f5faaf803
commit 5023f2cb6c
3 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -263,8 +263,8 @@ KeyEventResult UnsyncKeyEvent(const KeyInput &key, ViewGroup *root) {
return retval;
}
void KeyEvent(const KeyInput &key, ViewGroup *root) {
root->Key(key);
bool KeyEvent(const KeyInput &key, ViewGroup *root) {
return root->Key(key);
}
void TouchEvent(const TouchInput &touch, ViewGroup *root) {
+1 -1
View File
@@ -33,7 +33,7 @@ enum class KeyEventResult {
// Hooks arrow keys for navigation
KeyEventResult UnsyncKeyEvent(const KeyInput &key, ViewGroup *root);
void KeyEvent(const KeyInput &key, ViewGroup *root);
bool KeyEvent(const KeyInput &key, ViewGroup *root);
void TouchEvent(const TouchInput &touch, ViewGroup *root);
void AxisEvent(const AxisInput &axis, ViewGroup *root);
+1 -2
View File
@@ -74,8 +74,7 @@ void UIScreen::axis(const AxisInput &axis) {
bool UIScreen::key(const KeyInput &key) {
if (!ignoreInput_ && root_) {
UI::KeyEvent(key, root_);
return false;
return UI::KeyEvent(key, root_);
} else {
return false;
}