From 92ce0ad4fd90e3e47f1ba78b5df256ad2906b0d9 Mon Sep 17 00:00:00 2001 From: 0CodErr <0CodErr@kolibrios.org> Date: Tue, 19 Nov 2013 23:28:51 +0000 Subject: [PATCH] key insert for launch OpenDialog and "always focus" for edit_box git-svn-id: svn://kolibrios.org@4260 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/system/RunOD/RunOD.asm | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/programs/system/RunOD/RunOD.asm b/programs/system/RunOD/RunOD.asm index 6df642c730..82aaeb2584 100644 --- a/programs/system/RunOD/RunOD.asm +++ b/programs/system/RunOD/RunOD.asm @@ -1,6 +1,6 @@ ; Run with OpenDialog ; -; this source can be compiled ; - ; with FASM or NASM ; + + org 0 use32 @@ -82,10 +82,10 @@ start_: add eax, 1024 mov [od.filename_area], eax - add eax, 4096 - 1024 + add eax, 4096 - 1024 mov [od.opendir_path], eax - add eax, 4096 + add eax, 4096 mov [od.openfile_path], eax push od @@ -152,6 +152,11 @@ start_: jmp .loop ; ----------------------- ; .no_key_enter: + cmp ah, 185 + jne .no_key_insert + call on_button_browse + jmp .loop +.no_key_insert: push edit1 call [edit_box_key] jmp .loop @@ -613,7 +618,7 @@ edit1: .max dd 4096 .text dd 0 .mouse_variable dd 0 -.flags dd 2 +.flags dd 0x4002 ; always focus .size dd 0 .pos dd 0 .offset dd 0