Work around problem with quote keys in Windows on an Apple machine
This was SVN commit r9575.
This commit is contained in:
parent
c2677b4bb0
commit
59124006c8
@ -192,6 +192,11 @@ InReaction HotkeyInputHandler( const SDL_Event_* ev )
|
|||||||
return IN_PASS;
|
return IN_PASS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Rather ugly hack to make the '"' key work better on a MacBook Pro on Windows so it doesn't
|
||||||
|
// always close the console. (Maybe this would be better handled in wsdl or something?)
|
||||||
|
if (keycode == SDLK_BACKQUOTE && (ev->ev.key.keysym.unicode == '\'' || ev->ev.key.keysym.unicode == '"'))
|
||||||
|
keycode = ev->ev.key.keysym.unicode;
|
||||||
|
|
||||||
// Somewhat hackish:
|
// Somewhat hackish:
|
||||||
// Create phantom 'unified-modifier' events when left- or right- modifier keys are pressed
|
// Create phantom 'unified-modifier' events when left- or right- modifier keys are pressed
|
||||||
// Just send them to this handler; don't let the imaginary event codes leak back to real SDL.
|
// Just send them to this handler; don't let the imaginary event codes leak back to real SDL.
|
||||||
|
Loading…
Reference in New Issue
Block a user