From 57dc6651387e04966766ec9cd27196ccbf2af39f Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Sun, 7 Feb 2016 15:47:22 +0000 Subject: [PATCH] web demo: fix Escape key exit, thanks abc for reporting git-svn-id: svn://kolibrios.org@6160 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/demos/web/trunk/build.bat | 2 ++ programs/demos/web/trunk/web.asm | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 programs/demos/web/trunk/build.bat diff --git a/programs/demos/web/trunk/build.bat b/programs/demos/web/trunk/build.bat new file mode 100644 index 0000000000..d667ee370d --- /dev/null +++ b/programs/demos/web/trunk/build.bat @@ -0,0 +1,2 @@ +@fasm web.asm web +@pause \ No newline at end of file diff --git a/programs/demos/web/trunk/web.asm b/programs/demos/web/trunk/web.asm index e540758ca0..57aea008cd 100644 --- a/programs/demos/web/trunk/web.asm +++ b/programs/demos/web/trunk/web.asm @@ -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