Mercurial > 510Connectbot
comparison src/com/five_ten_sg/connectbot/service/TerminalKeyListener.java @ 42:7ac846a07ed4 tn5250
start tn5250 integration
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 11 Jun 2014 09:14:31 -0700 |
parents | 0ce5cc452d02 |
children | 80dcebe51af2 |
comparison
equal
deleted
inserted
replaced
41:9621ac4dd5eb | 42:7ac846a07ed4 |
---|---|
470 PreferenceConstants.CAMERA, | 470 PreferenceConstants.CAMERA, |
471 PreferenceConstants.HWBUTTON_SCREEN_CAPTURE); | 471 PreferenceConstants.HWBUTTON_SCREEN_CAPTURE); |
472 return (handleShortcut(v, hwbuttonShortcut)); | 472 return (handleShortcut(v, hwbuttonShortcut)); |
473 | 473 |
474 case KeyEvent.KEYCODE_VOLUME_UP: | 474 case KeyEvent.KEYCODE_VOLUME_UP: |
475 // check to see which shortcut the camera button triggers | 475 // check to see which shortcut the volume button triggers |
476 hwbuttonShortcut = manager.prefs.getString( | 476 hwbuttonShortcut = manager.prefs.getString( |
477 PreferenceConstants.VOLUP, | 477 PreferenceConstants.VOLUP, |
478 PreferenceConstants.HWBUTTON_CTRL); | 478 PreferenceConstants.HWBUTTON_CTRL); |
479 return (handleShortcut(v, hwbuttonShortcut)); | 479 return (handleShortcut(v, hwbuttonShortcut)); |
480 | 480 |
484 PreferenceConstants.VOLDN, | 484 PreferenceConstants.VOLDN, |
485 PreferenceConstants.HWBUTTON_TAB); | 485 PreferenceConstants.HWBUTTON_TAB); |
486 return (handleShortcut(v, hwbuttonShortcut)); | 486 return (handleShortcut(v, hwbuttonShortcut)); |
487 | 487 |
488 case KeyEvent.KEYCODE_SEARCH: | 488 case KeyEvent.KEYCODE_SEARCH: |
489 // check to see which shortcut the camera button triggers | 489 // check to see which shortcut the search button triggers |
490 hwbuttonShortcut = manager.prefs.getString( | 490 hwbuttonShortcut = manager.prefs.getString( |
491 PreferenceConstants.SEARCH, | 491 PreferenceConstants.SEARCH, |
492 PreferenceConstants.HWBUTTON_ESC); | 492 PreferenceConstants.HWBUTTON_ESC); |
493 return (handleShortcut(v, hwbuttonShortcut)); | 493 return (handleShortcut(v, hwbuttonShortcut)); |
494 | 494 |
911 else { | 911 else { |
912 if (clipboard != null) { | 912 if (clipboard != null) { |
913 // copy selected area to clipboard | 913 // copy selected area to clipboard |
914 String copiedText = selectionArea.copyFrom(buffer); | 914 String copiedText = selectionArea.copyFrom(buffer); |
915 clipboard.setText(copiedText); | 915 clipboard.setText(copiedText); |
916 // XXX STOPSHIP | |
917 // manager.notifyUser(manager.getString( | |
918 // R.string.console_copy_done, | |
919 // copiedText.length())); | |
920 selectingForCopy = false; | 916 selectingForCopy = false; |
921 selectionArea.reset(); | 917 selectionArea.reset(); |
922 } | 918 } |
923 } | 919 } |
924 } | 920 } |