mirror of
https://github.com/RGBCube/serenity
synced 2025-07-19 13:17:39 +00:00
GComboBox: Add set_text() and on_return_pressed hook.
Also give focus back to the editor when closing the list popup window.
This commit is contained in:
parent
0af61e9123
commit
1d0ada32cc
2 changed files with 12 additions and 0 deletions
|
@ -12,6 +12,7 @@ public:
|
|||
virtual ~GComboBox() override;
|
||||
|
||||
String text() const;
|
||||
void set_text(const String&);
|
||||
|
||||
void open();
|
||||
void close();
|
||||
|
@ -21,6 +22,7 @@ public:
|
|||
void set_model(NonnullRefPtr<GModel>);
|
||||
|
||||
Function<void(const String&)> on_change;
|
||||
Function<void()> on_return_pressed;
|
||||
|
||||
virtual const char* class_name() const override { return "GComboBox"; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue