From 25c0ffb4f4b34758a4dddb7ff4a1cada1bb07136 Mon Sep 17 00:00:00 2001 From: Jakob Fries Date: Sun, 29 Jul 2007 13:16:45 +0000 Subject: edit box now knows how to interpret home and end --- src/game/client/menu.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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; } -- cgit 1.4.1