diff options
author | Andreas Kling <kling@serenityos.org> | 2020-10-30 10:58:27 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-10-30 17:03:28 +0100 |
commit | aef56159a84a3e88422f7e7ebc11fe145ffe9075 (patch) | |
tree | 1ac8a8f2c652a2c3f0f9e39ff247e98909a09619 /Libraries/LibWeb/InProcessWebView.h | |
parent | 34014fa838cbc7e427ae00818fdf8f665f0e7801 (diff) | |
download | serenity-aef56159a84a3e88422f7e7ebc11fe145ffe9075.zip |
LibGUI: Add Widget focus policies
Every widget now has a GUI::FocusPolicy that determines how it can
receive focus:
- NoFocus: The widget is not focusable (default)
- TabFocus: The widget can be focused using the tab key.
- ClickFocus: The widget can be focused by clicking on it.
- StrongFocus: Both of the above.
For widgets that have a focus proxy, getting/setting the focus policy
will affect the proxy instead.
Diffstat (limited to 'Libraries/LibWeb/InProcessWebView.h')
-rw-r--r-- | Libraries/LibWeb/InProcessWebView.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Libraries/LibWeb/InProcessWebView.h b/Libraries/LibWeb/InProcessWebView.h index 6122e79f6a..e84778a2a5 100644 --- a/Libraries/LibWeb/InProcessWebView.h +++ b/Libraries/LibWeb/InProcessWebView.h @@ -61,8 +61,6 @@ public: void set_should_show_line_box_borders(bool value) { m_should_show_line_box_borders = value; } - virtual bool accepts_focus() const override { return true; } - GUI::Action& select_all_action() { return *m_select_all_action; } GUI::Action& copy_action() { return *m_copy_action; } |