From 4001ed7515ddec29aa6fbb0a815f76165d4b1ad8 Mon Sep 17 00:00:00 2001 From: Nil Geisweiller Date: Sat, 28 Mar 2020 20:36:39 +0200 Subject: [PATCH] Initialize keyboard layout based on user preference Otherwise the Simple QWERTY layout is loaded in the Virtual MIDI Keyboard regardless of what is set in Preferences->MIDI->Virtual Keyboard->Virtual Keyboard Layout --- gtk2_ardour/virtual_keyboard_window.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/virtual_keyboard_window.cc b/gtk2_ardour/virtual_keyboard_window.cc index 2af739e920..5aecdd849b 100644 --- a/gtk2_ardour/virtual_keyboard_window.cc +++ b/gtk2_ardour/virtual_keyboard_window.cc @@ -51,7 +51,7 @@ VirtualKeyboardWindow::VirtualKeyboardWindow () _piano.set_flags (Gtk::CAN_FOCUS); - _piano.set_keyboard_layout (APianoKeyboard::S_QWERTY); + select_keyboard_layout (UIConfiguration::instance().get_vkeybd_layout ()); _piano.set_annotate_octave (true); _piano.set_grand_piano_highlight (false); _piano.set_annotate_layout (true);