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:
Kirill Lipatov (Leency) 2016-02-07 15:47:22 +00:00
parent 4b69111222
commit 57dc665138
2 changed files with 4 additions and 2 deletions

View File

@ -0,0 +1,2 @@
@fasm web.asm web
@pause

View File

@ -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