frontend: Don't mark OBSHotkeyEdit as read-only on macOS

Recent styling changes mean read-only QLineEdits no longer visually take
focus. There are better ways to remove the input cursor, and if we do
that that should probably be all operating systems anyways.
This commit is contained in:
Sebastian Beckmann
2025-08-19 16:41:27 -04:00
committed by Ryan Foster
parent 9dcef85e69
commit a7d68842fb
-10
View File
@@ -43,11 +43,6 @@ public:
original(original),
settings(settings)
{
#ifdef __APPLE__
// disable the input cursor on OSX, focus should be clear
// enough with the default focus frame
setReadOnly(true);
#endif
setAttribute(Qt::WA_InputMethodEnabled, false);
setAttribute(Qt::WA_MacShowFocusRect, true);
InitSignalHandler();
@@ -55,11 +50,6 @@ public:
}
OBSHotkeyEdit(QWidget *parent = nullptr) : QLineEdit(parent), original({}), settings(nullptr)
{
#ifdef __APPLE__
// disable the input cursor on OSX, focus should be clear
// enough with the default focus frame
setReadOnly(true);
#endif
setAttribute(Qt::WA_InputMethodEnabled, false);
setAttribute(Qt::WA_MacShowFocusRect, true);
InitSignalHandler();