# Second version of patch #3 for x3270 3.2.18.
# Prevents junk from appearing on the screen during CUT-mode file transfers,
# and speeds them up as well.

--- x3270-3.2/kybd.c	2001/12/17 22:27:05	1.37
+++ x3270-3.2/kybd.c	2002/02/22 02:46:04
@@ -887,7 +887,11 @@
 	 * If explicit (from the keyboard), unlock the keyboard now.
 	 * Otherwise (from the host), schedule a deferred keyboard unlock.
 	 */
-	if (explicit) {
+	if (explicit
+#if defined(X3270_FT) /*[*/
+	    || ft_state != FT_NONE
+#endif /*]*/
+	   ) {
 		kybdlock_clr(-1, "do_reset");
 	} else if (kybdlock &
   (KL_DEFERRED_UNLOCK | KL_OIA_TWAIT | KL_OIA_LOCKED | KL_AWAITING_FIRST)) {
