mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-13 00:24:44 +00:00
END key jumps between start and end of current input string
This commit is contained in:
parent
c49a703467
commit
993365cc6d
1 changed files with 12 additions and 0 deletions
|
@ -291,6 +291,7 @@ Field_Key(menufield_s *f, int key)
|
|||
}
|
||||
break;
|
||||
|
||||
case K_KP_RIGHTARROW:
|
||||
case K_RIGHTARROW:
|
||||
if (f->buffer[f->cursor] != '\0')
|
||||
{
|
||||
|
@ -306,6 +307,17 @@ Field_Key(menufield_s *f, int key)
|
|||
}
|
||||
break;
|
||||
|
||||
case K_END:
|
||||
if (f->buffer[f->cursor] == '\0')
|
||||
{
|
||||
f->cursor = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
f->cursor = strlen(f->buffer);
|
||||
}
|
||||
break;
|
||||
|
||||
case K_KP_DEL:
|
||||
case K_DEL:
|
||||
if (f->buffer[f->cursor] != '\0')
|
||||
|
|
Loading…
Reference in a new issue