mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
Run: Prevent printing [null] in case of empty history (#5433)
Pressing up-arrow or down-arrow with empty command history printed [null] in the text area. Fixes #5426
This commit is contained in:
parent
074e2ffdfd
commit
2c3f284b06
Notes:
sideshowbarker
2024-07-18 22:05:10 +09:00
Author: https://github.com/zsameem 🔰 Commit: https://github.com/SerenityOS/serenity/commit/2c3f284b06c Pull-request: https://github.com/SerenityOS/serenity/pull/5433 Issue: https://github.com/SerenityOS/serenity/issues/5426
1 changed files with 2 additions and 0 deletions
|
@ -101,6 +101,8 @@ void RunWindow::event(Core::Event& event)
|
|||
// Escape key pressed, close dialog
|
||||
close();
|
||||
return;
|
||||
} else if ((key_event.key() == Key_Up || key_event.key() == Key_Down) && m_path_history.is_empty()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue