13
0

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
This commit is contained in:
Nil Geisweiller 2020-03-28 20:36:39 +02:00
parent 6a930c81eb
commit 4001ed7515

View File

@ -51,7 +51,7 @@ VirtualKeyboardWindow::VirtualKeyboardWindow ()
_piano.set_flags (Gtk::CAN_FOCUS); _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_annotate_octave (true);
_piano.set_grand_piano_highlight (false); _piano.set_grand_piano_highlight (false);
_piano.set_annotate_layout (true); _piano.set_annotate_layout (true);