Package org.qdl_lang.gui
Class SwingTerminal.QDLHistoryKeyAdapter
- java.lang.Object
- 
- java.awt.event.KeyAdapter
- 
- org.qdl_lang.gui.editor.EditorKeyPressedAdapter
- 
- org.qdl_lang.gui.SwingTerminal.QDLHistoryKeyAdapter
 
 
 
- 
- All Implemented Interfaces:
- KeyListener,- EventListener
 - Direct Known Subclasses:
- QDLSASTerminal.QDLSASHistoryKeyAdapter
 - Enclosing class:
- SwingTerminal
 
 public class SwingTerminal.QDLHistoryKeyAdapter extends EditorKeyPressedAdapter This listens for ctrl+up or down arrows and will scroll through the input/outputs in tandem
- 
- 
Field Summary- 
Fields inherited from class org.qdl_lang.gui.editor.EditorKeyPressedAdapterinput, output
 
- 
 - 
Constructor SummaryConstructors Constructor Description QDLHistoryKeyAdapter(WorkspaceCommands workspaceCommands, JFrame frame, org.fife.ui.rsyntaxtextarea.RSyntaxTextArea input, JTextArea output)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intarrowDown(int ndx, List<String> lines, JTextArea textArea)protected intarrowUp(int ndx, List<String> lines, JTextArea textArea)voidkeyPressed(KeyEvent e)NOTE- 
Methods inherited from class org.qdl_lang.gui.editor.EditorKeyPressedAdaptercreateHelpMessage, doQuit, doSave, getGUIHelp, getHelp, getLineNumber, showHelp, toggleSelectionComment
 - 
Methods inherited from class java.awt.event.KeyAdapterkeyReleased, keyTyped
 
- 
 
- 
- 
- 
Constructor Detail- 
QDLHistoryKeyAdapterpublic QDLHistoryKeyAdapter(WorkspaceCommands workspaceCommands, JFrame frame, org.fife.ui.rsyntaxtextarea.RSyntaxTextArea input, JTextArea output) 
 
- 
 - 
Method Detail- 
keyPressedpublic void keyPressed(KeyEvent e) NOTEThis is not just a text area, it is anRSyntaxTextAreawhich masks off various keystroked for itself. A symptom of this is if you attempt to use one of the (not well documented) reserved keystrokes, you will get mysterious enter key events as it tries to reformat (or whatever) the input area. So far the list of reserved keys are- a -- select all
- c -- copy select to clipboard
- d -- delete current line
- j --(justify?)
- k -- beeps?
- v -- paste from clipbaord
- x -- cut selected to clipboard
 - Specified by:
- keyPressedin interface- KeyListener
- Overrides:
- keyPressedin class- EditorKeyPressedAdapter
- Parameters:
- e-
 
 
- 
 
-