forked from KolibriOS/kolibrios
web demo: fix Escape key exit, thanks abc for reporting
git-svn-id: svn://kolibrios.org@6160 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
4b69111222
commit
57dc665138
2
programs/demos/web/trunk/build.bat
Normal file
2
programs/demos/web/trunk/build.bat
Normal file
@ -0,0 +1,2 @@
|
||||
@fasm web.asm web
|
||||
@pause
|
@ -352,8 +352,8 @@ wait_event:
|
||||
jnz exit ; If not key then Alt+F4
|
||||
; key pressed, read it and ignore
|
||||
mcall 2
|
||||
cmp eax, 0x1B00 ;Test for Escape key press
|
||||
jnz wait_event
|
||||
cmp ah, 27 ; Test Esc key press in ASCII
|
||||
jne wait_event
|
||||
|
||||
; button pressed; we have only one button, close
|
||||
; also seems to handle Alt+F4
|
||||
|
Loading…
Reference in New Issue
Block a user