Forráskód Böngészése

LibGUI: Prevent key_down event from bubbling for Key_Up and Key_Down

This just corrects an oversight in EditingEngine where we do not
properly signal "we handled this event" for Key_Up and Key_Down like we
do for the other keys
Timothy Slater 2 éve
szülő
commit
7b62e02bc3
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      Userland/Libraries/LibGUI/EditingEngine.cpp

+ 1 - 0
Userland/Libraries/LibGUI/EditingEngine.cpp

@@ -106,6 +106,7 @@ bool EditingEngine::on_key(KeyEvent const& event)
         }
 
         move_one_helper(event, direction);
+        return true;
     }
 
     if (event.key() == KeyCode::Key_Home) {