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

UI: Allow resizing docks when hotkeys are disabled
master
Jim 2020-02-13 23:40:42 -08:00 committed by GitHub
commit da326f63f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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};