diff src/org/tn5250j/framework/tn5250/Screen5250.java @ 113:cb3b9b660b3d

depress() keys from the terminal monitor go straight thru buffer.keyPressed() rather than detour though the key listener
author Carl Byington <carl@five-ten-sg.com>
date Wed, 18 Jun 2014 14:24:00 -0700
parents 77ac18bc1b2f
children bc59a399f627
line wrap: on
line diff
--- a/src/org/tn5250j/framework/tn5250/Screen5250.java	Wed Jun 18 13:03:01 2014 -0700
+++ b/src/org/tn5250j/framework/tn5250/Screen5250.java	Wed Jun 18 14:24:00 2014 -0700
@@ -985,38 +985,17 @@
                 setCursorActive(false);
 
                 while (!done) {
-                    //            while (strokenizer.hasMoreKeyStrokes() && !keyboardLocked
-                    // &&
-                    //                        !isStatusErrorCode() && !done) {
                     if (strokenizer.hasMoreKeyStrokes()) {
                         // check to see if position is in a field and if it is
-                        // then change
-                        //   current field to that field
+                        // then change current field to that field
                         isInField(lastPos, true);
                         s = strokenizer.nextKeyStroke();
 
                         if (s.length() == 1) {
-                            //                  setCursorOn();
-                            //                  if (!keysBuffered) {
-                            //                     System.out.println(" s two" + s);
-                            //                     setCursorOn();
-                            //                  }
-                            //                  try { new Thread().sleep(400);} catch
-                            // (InterruptedException ie) {}
                             simulateKeyStroke(s.charAt(0));
-                            //                     System.out.println(" s two " + s + " " +
-                            // cursorActive);
-                            //                  if (cursorActive && !keysBuffered) {
-                            //                     System.out.println(" s two" + s);
-                            //                     setCursorOn();
-                            //                  }
                         }
                         else {
                             simulateMnemonic(getMnemonicValue(s));
-                            //                  if (!cursorActive && !keysBuffered) {
-                            //                     System.out.println(" m one");
-                            //                     setCursorOn();
-                            //                  }
                         }
 
                         if (oia.isKeyBoardLocked()) {
@@ -1031,8 +1010,6 @@
                         }
                     }
                     else {
-                        //                  setCursorActive(true);
-                        //                  setCursorOn();
                         done = true;
                     }
                 }
@@ -1374,7 +1351,6 @@
                 break;
 
             case HOME:
-
                 // position to the home position set
                 if (lastPos + numCols + 1 != homePos) {
                     goto_XY(homePos - numCols - 1);