rnd-20060217-1-src
authorHolger Schemel <info@artsoft.org>
Fri, 17 Feb 2006 01:54:52 +0000 (02:54 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 30 Aug 2014 08:50:48 +0000 (10:50 +0200)
* added use of "Home" and "End" keys to handle element list in editor

ChangeLog
src/conftime.h
src/editor.c

index 915e1ba5dd1fb268eb7faf98137bbbc58f51acfe..2bf75b8eb5fdbc2ccb10399748505793fc513690 100644 (file)
--- 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
index efe090e5d364228c1380c3a729695852e791a8b3..5349a28bb66356d386bb129390e5a99f15fcf242 100644 (file)
@@ -1 +1 @@
-#define COMPILE_DATE_STRING "[2006-02-15 23:26]"
+#define COMPILE_DATE_STRING "[2006-02-17 02:49]"
index 6c51c6dc2bd19cce1551190cd9f68cbe8dc367a8..0dc86233de69ac195ba275cf7173e5c35ff43aa3 100644 (file)
@@ -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)
        {