From 190eef07a672da2fbb8ef477f9e218a6fe652e94 Mon Sep 17 00:00:00 2001 From: Palana Date: Fri, 15 May 2015 16:26:10 +0200 Subject: [PATCH] UI: Handle empty key combos from QEvents in hotkey dialog This should allow entering alt + numpad N (N > 0) on windows since there doesn't seem to be a way to completely ignore input events generated from "alt codes" --- obs/hotkey-edit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obs/hotkey-edit.cpp b/obs/hotkey-edit.cpp index 34b5c1d94..d4e72575b 100644 --- a/obs/hotkey-edit.cpp +++ b/obs/hotkey-edit.cpp @@ -142,7 +142,7 @@ void OBSHotkeyEdit::mousePressEvent(QMouseEvent *event) void OBSHotkeyEdit::HandleNewKey(obs_key_combination_t new_key) { - if (new_key == key) + if (new_key == key || obs_key_combination_is_empty(new_key)) return; key = new_key;