Просмотр исходного кода

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"
Palana 10 лет назад
Родитель
Сommit
190eef07a6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      obs/hotkey-edit.cpp

+ 1 - 1
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;