From 70b6d1af1a18c70b698cac732ec04e69ac32315c Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 17 Feb 2006 02:54:52 +0100 Subject: [PATCH] rnd-20060217-1-src * added use of "Home" and "End" keys to handle element list in editor --- ChangeLog | 3 +++ src/conftime.h | 2 +- src/editor.c | 13 +++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 915e1ba5..2bf75b8e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2006-02-16 + * added use of "Home" and "End" keys to handle element list in editor + 2006-02-15 * fixed bug with adding score when playing tape with EMC game engine * added steel wall border for levels using EMC engine without border diff --git a/src/conftime.h b/src/conftime.h index efe090e5..5349a28b 100644 --- a/src/conftime.h +++ b/src/conftime.h @@ -1 +1 @@ -#define COMPILE_DATE_STRING "[2006-02-15 23:26]" +#define COMPILE_DATE_STRING "[2006-02-17 02:49]" diff --git a/src/editor.c b/src/editor.c index 6c51c6dc..0dc86233 100644 --- a/src/editor.c +++ b/src/editor.c @@ -9890,6 +9890,19 @@ void HandleLevelEditorKeyInput(Key key) button = MB_RIGHTBUTTON; break; + case KSYM_Home: + case KSYM_End: + element_shift = (key == KSYM_Home ? 0 : + num_editor_elements - ED_NUM_ELEMENTLIST_BUTTONS); + + ModifyGadget(level_editor_gadget[GADGET_ID_SCROLL_LIST_VERTICAL], + GDI_SCROLLBAR_ITEM_POSITION, + element_shift / ED_ELEMENTLIST_BUTTONS_HORIZ, GDI_END); + + ModifyEditorElementList(); + + break; + case KSYM_Escape: if (edit_mode == ED_MODE_DRAWING) { -- 2.34.1