Commit 7bcf380e authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/wxwindows/interface.cpp: fixed hotkeys with modifiers on win32.

parent b070df41
...@@ -578,8 +578,14 @@ void Interface::SetupHotkeys() ...@@ -578,8 +578,14 @@ void Interface::SetupHotkeys()
/* Setup the hotkeys as accelerators */ /* Setup the hotkeys as accelerators */
for( int i = 0; i < i_hotkeys; i++ ) for( int i = 0; i < i_hotkeys; i++ )
{ {
p_entries[i].Set( ConvertHotkeyModifiers( p_hotkeys[i].i_key ), int i_mod = ConvertHotkeyModifiers( p_hotkeys[i].i_key );
ConvertHotkey( p_hotkeys[i].i_key ), int i_key = ConvertHotkey( p_hotkeys[i].i_key );
#ifdef WIN32
if( i_mod ) i_key = toupper(i_key);
#endif
p_entries[i].Set( i_mod, i_key,
p_intf->p_sys->i_first_hotkey_event + i ); p_intf->p_sys->i_first_hotkey_event + i );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment