diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-08-22 11:09:25 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-08-22 11:11:48 +0200 |
commit | fae379b1f081064b890147232c80550515e08678 (patch) | |
tree | eaf638d49412f8695f69d1dcb12883a72ff0ec93 /Applications/TextEditor/TextEditorWidget.h | |
parent | 96c5c9ce12fcd798f690e134b7707350468cc171 (diff) | |
download | serenity-fae379b1f081064b890147232c80550515e08678.zip |
TextEditor: Search box should find on return, close itself on escape
This patch adds basic keyboard access to the search box. We also yield
focus back gracefully to the text document when the search box is no
longer wanted.
Focus should probably move automatically when an ancestor of the
currently focused widget if made invisible..
Diffstat (limited to 'Applications/TextEditor/TextEditorWidget.h')
-rw-r--r-- | Applications/TextEditor/TextEditorWidget.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Applications/TextEditor/TextEditorWidget.h b/Applications/TextEditor/TextEditorWidget.h index d8dab46777..cf7d8820de 100644 --- a/Applications/TextEditor/TextEditorWidget.h +++ b/Applications/TextEditor/TextEditorWidget.h @@ -32,4 +32,5 @@ private: GTextBox* m_find_textbox { nullptr }; GButton* m_find_button { nullptr }; + GWidget* m_find_widget { nullptr }; }; |