mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 10:27:35 +00:00
GWindow: Get rid of superflous variable
This commit is contained in:
parent
55e115b0cd
commit
54005e6942
1 changed files with 2 additions and 3 deletions
|
@ -288,10 +288,9 @@ void GWindow::event(CEvent& event)
|
|||
auto found_widget = m_hashed_potential_keybind_widgets.find(m_entered_keybind);
|
||||
if (found_widget != m_hashed_potential_keybind_widgets.end()) {
|
||||
m_keybind_mode = false;
|
||||
const auto& point = Point();
|
||||
auto event = make<GMouseEvent>(GEvent::MouseDown, point, 0, GMouseButton::Left, 0, 0);
|
||||
auto event = make<GMouseEvent>(GEvent::MouseDown, Point(), 0, GMouseButton::Left, 0, 0);
|
||||
found_widget->value->event(*event);
|
||||
event = make<GMouseEvent>(GEvent::MouseUp, point, 0, GMouseButton::Left, 0, 0);
|
||||
event = make<GMouseEvent>(GEvent::MouseUp, Point(), 0, GMouseButton::Left, 0, 0);
|
||||
found_widget->value->event(*event);
|
||||
} else if (m_entered_keybind.length() >= m_max_keybind_length) {
|
||||
m_keybind_mode = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue