mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:27:43 +00:00
Minesweeper: Fix UI layout and focus behavior
Click-to-focus was visually annoying. Switch to tab-to-focus.
This commit is contained in:
parent
ec1a72b759
commit
a7ad0f14bf
2 changed files with 6 additions and 3 deletions
|
@ -33,7 +33,6 @@
|
|||
#include <LibGUI/Painter.h>
|
||||
#include <LibGfx/Palette.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
class SquareButton final : public GUI::Button {
|
||||
C_OBJECT(SquareButton);
|
||||
|
@ -56,7 +55,10 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
SquareButton() { }
|
||||
SquareButton()
|
||||
{
|
||||
set_focus_policy(GUI::FocusPolicy::TabFocus);
|
||||
}
|
||||
};
|
||||
|
||||
class SquareLabel final : public GUI::Label {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue