From 22efe75883531d1911e4246a8bd9ab593a7d81b0 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 15 May 2017 14:57:43 -0700 Subject: [PATCH] IBM1130: Move focus to console input window after all GUI button presses As discussed in #450 --- Ibm1130/ibm1130_gui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ibm1130/ibm1130_gui.c b/Ibm1130/ibm1130_gui.c index 20856a59..8274cfe2 100644 --- a/Ibm1130/ibm1130_gui.c +++ b/Ibm1130/ibm1130_gui.c @@ -109,7 +109,7 @@ extern UNIT prt_unit; static void destroy_console_window (void) {} t_stat console_reset (DEVICE *dptr) {return SCPE_OK;} - long stuff_cmd (char *cmd) {return 0} + long stuff_cmd (char *cmd) {return 0;} t_bool stuff_and_wait (char *cmd, int timeout, int delay) {return FALSE;} char *read_cmdline (char *ptr, int size, FILE *stream) {return read_line(ptr, size, stream);} void remark_cmd (char *remark) {sim_printf("%s\n", remark);} @@ -1228,7 +1228,6 @@ void HandleCommand (HWND hWnd, WORD wNotify, WORD idCtl, HWND hwCtl) * while (running) * Sleep(10); */ - SetForegroundWindow(hConsoleWindow); } break; @@ -1268,6 +1267,7 @@ void HandleCommand (HWND hWnd, WORD wNotify, WORD idCtl, HWND hwCtl) break; } + SetForegroundWindow(hConsoleWindow); update_gui(FALSE); }