changeset 144:03af90a2f0a9

testing key codes
author Carl Byington <carl@five-ten-sg.com>
date Sat, 21 Jun 2014 16:27:49 -0700
parents 63f0f0267545
children 4dfa4dd791c1
files src/com/five_ten_sg/connectbot/transport/TN5250.java
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/transport/TN5250.java	Sat Jun 21 16:23:57 2014 -0700
+++ b/src/com/five_ten_sg/connectbot/transport/TN5250.java	Sat Jun 21 16:27:49 2014 -0700
@@ -147,16 +147,17 @@
         @Override
         public void write(byte[] b) {
             if (bridge.monitor != null) bridge.monitor.hostData(b);
+
+            screen52.sendKeys(new String(b));
+        }
+        @Override
+        public void write(int b) {
             if (b == 120) {
                 // special case x for testing
                 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_F3);
                 keyListener.onKey(bridge.parent, event.getKeyCode(), event);
                 return;
             }
-            screen52.sendKeys(new String(b));
-        }
-        @Override
-        public void write(int b) {
             if (controls.containsKey(b)) {
                 keyPressed(controls.get(b), ' ', 0);
             }