Browse Source

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.
Sebastian Beckmann 2 months ago
parent
commit
a7d68842fb
1 changed files with 0 additions and 10 deletions
  1. 0 10
      frontend/settings/OBSHotkeyEdit.hpp

+ 0 - 10
frontend/settings/OBSHotkeyEdit.hpp

@@ -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();