comparison src/com/five_ten_sg/connectbot/service/TerminalKeyListener.java @ 55:17fd0e489165 tn5250

start tn5250 integration
author Carl Byington <carl@five-ten-sg.com>
date Wed, 11 Jun 2014 14:04:07 -0700
parents a7e660661e08
children 556c387889b9
comparison
equal deleted inserted replaced
54:a7e660661e08 55:17fd0e489165
579 case KeyEvent.KEYCODE_DPAD_CENTER: 579 case KeyEvent.KEYCODE_DPAD_CENTER:
580 ctrlKeySpecial(); 580 ctrlKeySpecial();
581 return true; 581 return true;
582 } 582 }
583 } 583 }
584 catch (IOException e) {
585 Log.e(TAG, "Problem while trying to handle an onKey() event", e);
586
587 try {
588 bridge.transport.flush();
589 }
590 catch (IOException ioe) {
591 Log.d(TAG, "Our transport was closed, dispatching disconnect event");
592 bridge.dispatchDisconnect(false);
593 }
594 }
595 catch (NullPointerException npe) { 584 catch (NullPointerException npe) {
596 Log.d(TAG, "Input before connection established ignored."); 585 Log.d(TAG, "Input before connection established ignored.");
597 return true; 586 return true;
598 } 587 }
599
600 return false; 588 return false;
601 } 589 }
602 590
603 private boolean handleShortcut(View v, String shortcut) { 591 private boolean handleShortcut(View v, String shortcut) {
604 if (PreferenceConstants.HWBUTTON_SCREEN_CAPTURE.equals(shortcut)) { 592 if (PreferenceConstants.HWBUTTON_SCREEN_CAPTURE.equals(shortcut)) {