mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
PixelPaint: Close New Image dialog after pressing return key
13e526de43
added the feature to new Layer
dialog. This patch adds it to Image dialog to stay consistent across
the app. :^)
This commit is contained in:
parent
926a49cd81
commit
df195188bc
Notes:
sideshowbarker
2024-07-18 03:27:29 +09:00
Author: https://github.com/krkk Commit: https://github.com/SerenityOS/serenity/commit/df195188bc6 Pull-request: https://github.com/SerenityOS/serenity/pull/10210
1 changed files with 4 additions and 0 deletions
|
@ -65,6 +65,10 @@ CreateNewImageDialog::CreateNewImageDialog(GUI::Window* parent_window)
|
|||
m_image_size.set_height(value);
|
||||
};
|
||||
|
||||
m_name_textbox->on_return_pressed = [this] {
|
||||
done(ExecOK);
|
||||
};
|
||||
|
||||
width_spinbox.set_range(1, 16384);
|
||||
height_spinbox.set_range(1, 16384);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue