mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
LibGUI: Ignore keydown events with Alt modifier in AbstractView
AbstractView doesn't actually do anything with them anyway, but they would get swallowed by the cursor logic and not bubble up the widget parent chain.
This commit is contained in:
parent
d9212bb2f4
commit
4853576db7
Notes:
sideshowbarker
2024-07-18 22:07:00 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/4853576db7f
1 changed files with 5 additions and 0 deletions
|
@ -500,6 +500,11 @@ void AbstractView::hide_event(HideEvent& event)
|
|||
|
||||
void AbstractView::keydown_event(KeyEvent& event)
|
||||
{
|
||||
if (event.alt()) {
|
||||
event.ignore();
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.key() == KeyCode::Key_F2) {
|
||||
if (is_editable() && edit_triggers() & EditTrigger::EditKeyPressed) {
|
||||
begin_editing(cursor_index());
|
||||
|
|
Loading…
Reference in a new issue