瀏覽代碼

Merge pull request #2402 from WizardCM/mouse-hotkey-resize

UI: Allow resizing docks when hotkeys are disabled
Jim 5 年之前
父節點
當前提交
da326f63f5
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      UI/obs-app.cpp

+ 2 - 1
UI/obs-app.cpp

@@ -93,7 +93,8 @@ QObject *CreateShortcutFilter()
 {
 	return new OBSEventFilter([](QObject *obj, QEvent *event) {
 		auto mouse_event = [](QMouseEvent &event) {
-			if (!App()->HotkeysEnabledInFocus())
+			if (!App()->HotkeysEnabledInFocus() &&
+			    event.button() != Qt::LeftButton)
 				return true;
 
 			obs_key_combination_t hotkey = {0, OBS_KEY_NONE};