diff options
| author | Jakob Fries <jakob.fries@gmail.com> | 2007-07-29 13:16:45 +0000 |
|---|---|---|
| committer | Jakob Fries <jakob.fries@gmail.com> | 2007-07-29 13:16:45 +0000 |
| commit | 25c0ffb4f4b34758a4dddb7ff4a1cada1bb07136 (patch) | |
| tree | 627270edfe26e24a44eae0c15bf07393dde18fc2 /src/game/client/menu.cpp | |
| parent | 7187e692e721fb5752303c2426d35866f2d7b11e (diff) | |
| download | zcatch-25c0ffb4f4b34758a4dddb7ff4a1cada1bb07136.tar.gz zcatch-25c0ffb4f4b34758a4dddb7ff4a1cada1bb07136.zip | |
edit box now knows how to interpret home and end
Diffstat (limited to 'src/game/client/menu.cpp')
| -rw-r--r-- | src/game/client/menu.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/client/menu.cpp b/src/game/client/menu.cpp index 133c5fb5..06b65e62 100644 --- a/src/game/client/menu.cpp +++ b/src/game/client/menu.cpp @@ -465,6 +465,10 @@ int ui_do_edit_box(void *id, float x, float y, float w, float h, char *str, int at_index--; else if (k == input::right && at_index < len) at_index++; + else if (k == input::home) + at_index = 0; + else if (k == input::end) + at_index = len; r = 1; } |