mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Set alt key to move between words for OSX
This commit is contained in:
parent
b37f77574e
commit
68920a037e
|
@ -90,7 +90,11 @@ bool CLineInput::Manipulate(IInput::CEvent Event, char *pStr, int StrMaxSize, in
|
||||||
{
|
{
|
||||||
int Key = Event.m_Key;
|
int Key = Event.m_Key;
|
||||||
bool Ctrl = false;
|
bool Ctrl = false;
|
||||||
|
#ifdef CONF_PLATFORM_MACOSX
|
||||||
|
if(pInput && (pInput->KeyIsPressed(KEY_LALT) || pInput->KeyIsPressed(KEY_RALT)))
|
||||||
|
#else
|
||||||
if(pInput && (pInput->KeyIsPressed(KEY_LCTRL) || pInput->KeyIsPressed(KEY_RCTRL)))
|
if(pInput && (pInput->KeyIsPressed(KEY_LCTRL) || pInput->KeyIsPressed(KEY_RCTRL)))
|
||||||
|
#endif
|
||||||
Ctrl = true;
|
Ctrl = true;
|
||||||
if(Key == KEY_BACKSPACE && CursorPos > 0)
|
if(Key == KEY_BACKSPACE && CursorPos > 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue