From ecdbd1df92a04c12f54493c475ee90a102c91390 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 19 Dec 2019 23:02:19 +0100 Subject: [PATCH] Vkeybd: numeric only spinboxes for octave and velocity based on a patch by Alex Mitchell --- gtk2_ardour/virtual_keyboard_window.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk2_ardour/virtual_keyboard_window.cc b/gtk2_ardour/virtual_keyboard_window.cc index f3c54d6859..3d1195bfb6 100644 --- a/gtk2_ardour/virtual_keyboard_window.cc +++ b/gtk2_ardour/virtual_keyboard_window.cc @@ -91,6 +91,10 @@ VirtualKeyboardWindow::VirtualKeyboardWindow () _modwheel_adjustment.signal_value_changed ().connect (sigc::mem_fun (*this, &VirtualKeyboardWindow::modwheel_slider_adjusted)); _modwheel->ValueChanged.connect_same_thread (_cc_connections, boost::bind (&VirtualKeyboardWindow::control_change_event_handler, this, 1, _1)); + _piano_key_velocity.set_numeric (true); + _piano_octave_key.set_numeric (true); + _piano_octave_range.set_numeric (true); + set_tooltip (_piano_octave_key, _("The center octave, and lowest octave for keyboard control. Change with Arrow left/right.")); set_tooltip (_piano_octave_range, _("Available octave range, centered around the key-octave.")); set_tooltip (_piano_key_velocity, _("The default velocity to use with keyboard control, and when y-axis click-position is disabled."));