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
|
jnz exit ; If not key then Alt+F4
|
||||||
; key pressed, read it and ignore
|
; key pressed, read it and ignore
|
||||||
mcall 2
|
mcall 2
|
||||||
cmp eax, 0x1B00 ;Test for Escape key press
|
cmp ah, 27 ; Test Esc key press in ASCII
|
||||||
jnz wait_event
|
jne wait_event
|
||||||
|
|
||||||
; button pressed; we have only one button, close
|
; button pressed; we have only one button, close
|
||||||
; also seems to handle Alt+F4
|
; also seems to handle Alt+F4
|
||||||
|
Loading…
Reference in New Issue
Block a user