From 90df6f3fe625a95275a70c0ef0565cf062f8445d Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Tue, 21 Oct 2014 16:36:15 -0500 Subject: [PATCH] some keyboard layouts have KP_Separator instead of KP_Decimal --- gtk2_ardour/ardour_ui_ed.cc | 3 +++ gtk2_ardour/mnemonic-us.bindings.in | 1 + 2 files changed, 4 insertions(+) diff --git a/gtk2_ardour/ardour_ui_ed.cc b/gtk2_ardour/ardour_ui_ed.cc index a65114da46..275d681603 100644 --- a/gtk2_ardour/ardour_ui_ed.cc +++ b/gtk2_ardour/ardour_ui_ed.cc @@ -316,6 +316,9 @@ ARDOUR_UI::install_actions () act = ActionManager::register_action (transport_actions, X_("numpad-decimal"), _("Numpad Decimal"), mem_fun(*this, &ARDOUR_UI::transport_numpad_decimal)); ActionManager::session_sensitive_actions.push_back (act); ActionManager::transport_sensitive_actions.push_back (act); + act = ActionManager::register_action (transport_actions, X_("alternate-numpad-decimal"), _("Numpad Decimal"), mem_fun(*this, &ARDOUR_UI::transport_numpad_decimal)); + ActionManager::session_sensitive_actions.push_back (act); + ActionManager::transport_sensitive_actions.push_back (act); act = ActionManager::register_action (transport_actions, X_("numpad-0"), _("Numpad 0"), bind (mem_fun(*this, &ARDOUR_UI::transport_numpad_event), 0)); ActionManager::session_sensitive_actions.push_back (act); ActionManager::transport_sensitive_actions.push_back (act); diff --git a/gtk2_ardour/mnemonic-us.bindings.in b/gtk2_ardour/mnemonic-us.bindings.in index 9fa2b5dfad..703ff7a585 100644 --- a/gtk2_ardour/mnemonic-us.bindings.in +++ b/gtk2_ardour/mnemonic-us.bindings.in @@ -288,6 +288,7 @@ This mode provides many different operations on both regions and control points, @wvis|Transport/focus-on-clock|KP_Divide|focus on main clock @movp|Transport/numpad-decimal|KP_Decimal|numpad decimal should initiate and finalize a locate-to-marker +@movp|Transport/alternate-numpad-decimal|KP_Separator|(some keybd layouts have separator instead of decimal) @movp|Transport/numpad-0|KP_0|some text @-group|Transport/numpad-1|KP_1|some text