mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
LibGUI: Use AK_ENUM_BITWISE_OPERATORS for the FocusPolicy enum
This commit is contained in:
parent
5f6ab77352
commit
bac0dd5e3d
3 changed files with 6 additions and 3 deletions
|
@ -389,7 +389,7 @@ void Widget::handle_mouseup_event(MouseEvent& event)
|
|||
|
||||
void Widget::handle_mousedown_event(MouseEvent& event)
|
||||
{
|
||||
if (((unsigned)focus_policy() & (unsigned)FocusPolicy::ClickFocus))
|
||||
if (has_flag(focus_policy(), FocusPolicy::ClickFocus))
|
||||
set_focus(true, FocusSource::Mouse);
|
||||
mousedown_event(event);
|
||||
if (event.button() == MouseButton::Right) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue