Browse Source

Don't require a focused widget for invoking shortcuts

Josh Engebretson 10 years ago
parent
commit
7d4c0f2b9a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Atomic/UI/UIInput.cpp

+ 1 - 1
Source/Atomic/UI/UIInput.cpp

@@ -220,7 +220,7 @@ static bool InvokeShortcut(UI* ui, int key, SPECIAL_KEY special_key, MODIFIER_KE
 #else
 #else
     bool shortcut_key = (modifierkeys & TB_CTRL) ? true : false;
     bool shortcut_key = (modifierkeys & TB_CTRL) ? true : false;
 #endif
 #endif
-    if (!TBWidget::focused_widget || !down || (!shortcut_key && special_key ==TB_KEY_UNDEFINED))
+    if (!down || (!shortcut_key && special_key ==TB_KEY_UNDEFINED))
         return false;
         return false;
     bool reverse_key = (modifierkeys & TB_SHIFT) ? true : false;
     bool reverse_key = (modifierkeys & TB_SHIFT) ? true : false;
     int upper_key = toupr_ascii(key);
     int upper_key = toupr_ascii(key);