From 8c98b4cac9cca42b5f4ff69f9c8d2a639ed376e7 Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Thu, 6 Sep 2012 12:50:21 +0000 Subject: [PATCH] Resolvendo conflito no nome da ação "Reset"; reset de teclado passa a chamar "kybdreset" --- kybd.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/kybd.c b/kybd.c index 6e5aabd..83af1ec 100644 --- a/kybd.c +++ b/kybd.c @@ -1123,8 +1123,12 @@ static void defer_unlock(H3270 *hSession) ps_process(hSession); } -/* +/** * Reset keyboard lock. + * + * @param hSession Session handle. + * @param explicit Explicit request from the keyboard. + * */ void do_reset(H3270 *hSession, Boolean explicit) { @@ -1132,12 +1136,16 @@ void do_reset(H3270 *hSession, Boolean explicit) * If explicit (from the keyboard) and there is typeahead or * a half-composed key, simply flush it. */ - if (explicit #if defined(X3270_FT) /*[*/ || lib3270_get_ft_state(hSession) != LIB3270_FT_STATE_NONE #endif /*]*/ ) { + + if (flush_ta(hSession)) + return; + +/* Boolean half_reset = False; if (flush_ta(hSession)) @@ -1145,6 +1153,7 @@ void do_reset(H3270 *hSession, Boolean explicit) if (half_reset) return; +*/ } /* Always clear insert mode. */ @@ -1185,7 +1194,7 @@ void do_reset(H3270 *hSession, Boolean explicit) } -LIB3270_ACTION( reset ) +LIB3270_ACTION( kybdreset ) { lib3270_unselect(hSession); do_reset(hSession,True); -- libgit2 0.21.2