diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-02-18 11:06:28 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-02-18 11:06:28 +0100 |
commit | f0c1b0c5ac63cc7611f4afa21699f1240fed7a9f (patch) | |
tree | 9e1f12a95d5ec03773601c2316caa3e18f18a3b9 /gui/main-window.cpp | |
parent | f575f6402fc4e79e2d12c2bc897b616f112af4d9 (diff) |
gui, logic: allow for two keybindings for each function
Also, remove "disable reltrans while held" cause it's too specific.
Diffstat (limited to 'gui/main-window.cpp')
-rw-r--r-- | gui/main-window.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/gui/main-window.cpp b/gui/main-window.cpp index 046c6a44..d48e0b44 100644 --- a/gui/main-window.cpp +++ b/gui/main-window.cpp @@ -233,10 +233,17 @@ void MainWindow::register_shortcuts() t_keys keys { - t_key(s.key_start_tracking, [&](bool) -> void { emit_start_tracker(); }, true), - t_key(s.key_stop_tracking, [&](bool) -> void { emit_stop_tracker(); }, true), - t_key(s.key_toggle_tracking, [&](bool) -> void { emit_toggle_tracker(); }, true), - t_key(s.key_restart_tracking, [&](bool) -> void { emit_restart_tracker(); }, true), + t_key(s.key_start_tracking1, [&](bool) -> void { emit_start_tracker(); }, true), + t_key(s.key_start_tracking2, [&](bool) -> void { emit_start_tracker(); }, true), + + t_key(s.key_stop_tracking1, [&](bool) -> void { emit_stop_tracker(); }, true), + t_key(s.key_stop_tracking2, [&](bool) -> void { emit_stop_tracker(); }, true), + + t_key(s.key_toggle_tracking1, [&](bool) -> void { emit_toggle_tracker(); }, true), + t_key(s.key_toggle_tracking2, [&](bool) -> void { emit_toggle_tracker(); }, true), + + t_key(s.key_restart_tracking1, [&](bool) -> void { emit_restart_tracker(); }, true), + t_key(s.key_restart_tracking2, [&](bool) -> void { emit_restart_tracker(); }, true), }; global_shortcuts.reload(keys); |