From 7ed453de4a77266e7e29f2f944b285b4fe3b248b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 15 May 2016 12:30:35 +0200 Subject: api,gui: disable all keyboard shortcuts while binding a key Previous disallowed binding an already-bound key on Unix since Qxt doesn't pass through bound keys unlike the Windows implementation. Refactor some common code. The Windows implementation isn't even compile-tested. --- opentrack/shortcuts.h | 1 + 1 file changed, 1 insertion(+) (limited to 'opentrack/shortcuts.h') diff --git a/opentrack/shortcuts.h b/opentrack/shortcuts.h index b4a6f586..e9935b01 100644 --- a/opentrack/shortcuts.h +++ b/opentrack/shortcuts.h @@ -61,6 +61,7 @@ public: void reload(const std::vector> &keys_); private: + void free_binding(K& key); void bind_keyboard_shortcut(K &key, const key_opts& k, bool held); #ifdef _WIN32 void receiver(const Key& k); -- cgit v1.2.3