Skip to content

Commit

Permalink
Apply strong focus policy to joystick mapping button as well. Fixes m…
Browse files Browse the repository at this point in the history
  • Loading branch information
nadiaholmquist committed Jul 31, 2022
1 parent 98903f8 commit 2ba7f96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/frontend/qt_sdl/InputConfig/MapButton.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ class JoyMapButton : public QPushButton

setCheckable(true);
setText(mappingText());
setFocusPolicy(Qt::StrongFocus); //Fixes binding keys in macOS

connect(this, &JoyMapButton::clicked, this, &JoyMapButton::onClick);

Expand Down Expand Up @@ -354,4 +355,4 @@ private slots:
int axesRest[16];
};

#endif // MAPBUTTON_H
#endif // MAPBUTTON_H

0 comments on commit 2ba7f96

Please sign in to comment.