From 41613e4303c3bfdb168867264ffb848d1025edf7 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 22 Jun 2019 11:16:41 +0200 Subject: [PATCH] GSpinBox: Make the increment/decrement buttons unfocusable. --- LibGUI/GSpinBox.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LibGUI/GSpinBox.cpp b/LibGUI/GSpinBox.cpp index 774878c9dd..cc9bdf8082 100644 --- a/LibGUI/GSpinBox.cpp +++ b/LibGUI/GSpinBox.cpp @@ -16,9 +16,11 @@ GSpinBox::GSpinBox(GWidget* parent) m_editor->set_text(String::format("%d", m_value)); }; m_increment_button = new GButton(this); + m_increment_button->set_focusable(false); m_increment_button->set_text("\xf6"); m_increment_button->on_click = [this](GButton&) { set_value(m_value + 1); }; m_decrement_button = new GButton(this); + m_decrement_button->set_focusable(false); m_decrement_button->set_text("\xf7"); m_decrement_button->on_click = [this](GButton&) { set_value(m_value - 1); }; }