From 7e246790ed84d950b287b9d3572302fe9755221e Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Fri, 8 Mar 2013 18:18:59 +0000 Subject: [PATCH] Box_Lib - Editbox fix for Win keys. git-svn-id: svn://kolibrios.org@3358 a494cfbc-eb01-0410-851d-a64ba20cac60 --- .../libraries/box_lib/trunk/editbox.mac | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/programs/develop/libraries/box_lib/trunk/editbox.mac b/programs/develop/libraries/box_lib/trunk/editbox.mac index c7e485f38d..5a7b3a61f3 100644 --- a/programs/develop/libraries/box_lib/trunk/editbox.mac +++ b/programs/develop/libraries/box_lib/trunk/editbox.mac @@ -49,6 +49,24 @@ pushad test word ed_flags,ed_mouse_on jne edit_box.editbox_exit +;-------------------------------------- +; this code for Win-keys, works with +; kernel SVN r.3356 or later + push eax + push ebx + mcall 66,3 + test ax,0x200 ; LWin + jnz .win_key_pressed + test ax,0x400 ; RWin + jz @f +.win_key_pressed: + pop ebx + pop eax + jmp edit_box.editbox_exit +@@: + pop ebx + pop eax +;-------------------------------------- ;Проверка нажат shift ? call edit_box_key.check_shift ;----------------------------------------------------------