From 443fe5d8130cef19b4ee4436a682047975a2f7c5 Mon Sep 17 00:00:00 2001 From: Rob Goodberry Date: Sun, 5 Feb 2023 19:07:49 -0500 Subject: [PATCH] Update library/Core.cpp Co-authored-by: Myk --- library/Core.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/library/Core.cpp b/library/Core.cpp index d56519a9c..da560e17d 100644 --- a/library/Core.cpp +++ b/library/Core.cpp @@ -2420,13 +2420,8 @@ bool Core::SelectHotkey(int sym, int modifiers) continue; } if (!binding.focus.empty()) { - bool found = false; - std::vector focusStrings = Gui::getCurFocus(true); - if(Gui::matchFocusString(binding.focus)) { - found = true; - } - - if (!found) { + if (!Gui::matchFocusString(binding.focus)) { + std::vector focusStrings = Gui::getCurFocus(true); DEBUG(keybinding).print("skipping keybinding due to focus string mismatch: '%s' !~ '%s'\n", join_strings(", ", focusStrings).c_str(), binding.focus.c_str()); continue;