From d7b4570ef25a747b0477cbd8f97e14f33c7e6bb3 Mon Sep 17 00:00:00 2001 From: Serhii Sakhno Date: Tue, 11 Aug 2015 11:29:31 +0000 Subject: [PATCH] liza: use scancodes git-svn-id: svn://kolibrios.org@5714 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/liza/liza.c | 6 +++--- programs/cmm/liza/login.c | 10 +++++----- programs/cmm/liza/mail_box.c | 6 +++--- programs/cmm/liza/settings.c | 6 +++--- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/programs/cmm/liza/liza.c b/programs/cmm/liza/liza.c index 7f9aa73288..f47afbafdf 100644 --- a/programs/cmm/liza/liza.c +++ b/programs/cmm/liza/liza.c @@ -46,9 +46,9 @@ enum { #define WIN_H 440 #define WIN_MIN_W 500 #define WIN_MIN_H 380 -#define LOGIN_HEADER "Login - Email client Liza 0.9.3" -#define OPTIONS_HEADER "Options - Email client Liza 0.9.3" -#define MAILBOX_HEADER "Mail Box - Email client Liza 0.9.3" +#define LOGIN_HEADER "Login - Email client Liza 0.9.4" +#define OPTIONS_HEADER "Options - Email client Liza 0.9.4" +#define MAILBOX_HEADER "Mail Box - Email client Liza 0.9.4" #define BUFFERSIZE 512 proc_info Form; #define LBUMP 0xFFFfff diff --git a/programs/cmm/liza/login.c b/programs/cmm/liza/login.c index 15260ddae0..099172b65a 100644 --- a/programs/cmm/liza/login.c +++ b/programs/cmm/liza/login.c @@ -110,7 +110,7 @@ void LoginNetworkProcess() void LoginBoxLoop() { - int key, id; + int id; SetLoginStatus(NULL); goto _LB_DRAW; @@ -138,8 +138,8 @@ void LoginBoxLoop() break; case evKey: - key = GetKey(); - if (key==9) + GetKeys(); + if (key_scancode==SCAN_CODE_TAB) { if (login_box.flags & 0b10) { pass_box.flags = 0b11; login_box.flags = 0; } @@ -149,13 +149,13 @@ void LoginBoxLoop() edit_box_draw stdcall(#pass_box); break; } - if (key==13) && (!aim) + if (key_scancode==SCAN_CODE_ENTER) && (!aim) { aim=RESOLVE; GetSettings(); DrawLoginScreen(); } - EAX=key<<8; + EAX=key_ascii<<8; edit_box_key stdcall(#login_box); edit_box_key stdcall(#pass_box); break; diff --git a/programs/cmm/liza/mail_box.c b/programs/cmm/liza/mail_box.c index a1a32f67ac..5309f863fb 100644 --- a/programs/cmm/liza/mail_box.c +++ b/programs/cmm/liza/mail_box.c @@ -140,7 +140,7 @@ void MailBoxNetworkProcess() { void MailBoxLoop() { - int key, id; + int id; int panels_drag=0, clicked_list=0; dword line_col, text_col; @@ -249,9 +249,9 @@ void MailBoxLoop() { break; case evKey: - key = GetKey(); + GetKeys(); - if (!aim) && (mail_list.ProcessKey(key)) + if (!aim) && (mail_list.ProcessKey(key_scancode)) { DrawMailList(); aim = SEND_RETR; diff --git a/programs/cmm/liza/settings.c b/programs/cmm/liza/settings.c index 00b424a1a3..21f8f10d65 100644 --- a/programs/cmm/liza/settings.c +++ b/programs/cmm/liza/settings.c @@ -64,10 +64,10 @@ void SettingsDialog() break; case evKey: - key = GetKey(); + GetKeys();; if (checked[1]==0) break; - if (key==9) + if (key_scancode==SCAN_CODE_TAB) { if (POP_server_box.flags & 0b10) { POP_server_box.flags -= 0b10; POP_server_port_box.flags += 0b10; } else if (POP_server_port_box.flags & 0b10) { POP_server_port_box.flags -= 0b10; SMTP_server_box.flags += 0b10; } else @@ -77,7 +77,7 @@ void SettingsDialog() OptionsWindow(); } - EAX=key<<8; + EAX=key_ascii<<8; edit_box_key stdcall(#POP_server_box); edit_box_key stdcall(#POP_server_port_box); edit_box_key stdcall(#SMTP_server_box);