From bfaa4505b4c695c914871b3be64223c32e07805a Mon Sep 17 00:00:00 2001 From: Serhii Sakhno Date: Sun, 9 Aug 2015 21:59:25 +0000 Subject: [PATCH] Eolite 3.0 beta 4: use scan codes (Part 2) git-svn-id: svn://kolibrios.org@5702 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/eolite/Eolite.c | 54 +++++++++++----------- programs/cmm/eolite/include/menu.h | 13 ++++-- programs/cmm/eolite/include/properties.h | 27 +++++++++-- programs/cmm/eolite/include/settings.h | 9 ++-- programs/cmm/eolite/include/translations.h | 4 +- programs/cmm/lib/kolibri.h | 18 ++++++++ programs/cmm/lib/list_box.h | 12 ++--- 7 files changed, 89 insertions(+), 48 deletions(-) diff --git a/programs/cmm/eolite/Eolite.c b/programs/cmm/eolite/Eolite.c index 3dd4805015..1edb9328b6 100644 --- a/programs/cmm/eolite/Eolite.c +++ b/programs/cmm/eolite/Eolite.c @@ -339,19 +339,19 @@ void main() if (Form.status_window>2) break; if (del_active) { - if (key == ASCII_KEY_ENTER) Del_File(true); - if (key == ASCII_KEY_ESC) Del_File(false); + if (key2 == SCAN_CODE_ENTER) Del_File(true); + if (key2 == SCAN_CODE_ESC) Del_File(false); break; } if (new_element_active) { - if (key == ASCII_KEY_ESC) NewElement(0); - if (key == ASCII_KEY_ENTER) NewElement(1); + if (key2 == SCAN_CODE_ESC) NewElement(0); + if (key2 == SCAN_CODE_ENTER) NewElement(1); EAX=key<<8; edit_box_key stdcall (#new_file_ed); break; } - if (files.ProcessKey(key)) + if (files.ProcessKey(key2)) { List_ReDraw(); break; @@ -361,6 +361,15 @@ void main() { switch(key2) { + case 059...068: + key2 -= 59; + if (key2