ControlWORKS added keystroke methods

These are the editor methods added by Adventa Control Technologies' ControlWORKS framework. Unless otherwise note, they can be assigned to keystrokes using the TextEditor Keystroke remapping.

acceptCancelOrUndoKey: aCharEvent

If the Meta or Alt key is pressed, undoKey: is called. If the Ctrl key is pressed cancelKey: is called. If none of those keys are pressed, acceptKey: is called.

againKey: aCharEvent

This method repeats the last "find and replace" operation. If the Shift key is pressed, the process is repeated until all the instances are found and changed.

backwardCharKey: aCharEvent

If any text is currently selected and EditorAddons selectionIsSet is set to true, the selected text is copied to the clipboard and this selection is left unchanged. If selectionIsSet is false, the selection is left unchanged and nothing happens. If no text is currently selected, then like cursorLeftKey:, the cursor moves one character to the left.

backwardComplexKey: aCharEvent

If the Meta or Alt key is pressed, backwardWordKey: is called. If the Ctrl key is pressed, beginningOfLineKey: is called. If none of those keys are pressed, backwardCharKey: is called.

backwardDeleteKey: aCharEvent

If any text is currently selected, backspaceKey: is called; otherwise, one of the following takes place. If the Meta or Alt key is pressed, backwardDeleteWordKey: is called. If the Ctrl key is pressed, backwardDeleteLineKey: is called. If none of those keys are pressed, backspaceKey: is called.

backwardDeleteLineKey: aCharEvent

If no text is currently selected, the text from the current cursor position to the first character on the current line is cut to the clipboard. If no text is currently selected but the cursor position is at the beginning of a line, the previous line of text is cut to the clipboard.

backwardDeleteWordKey: aCharEvent

If any text is currently selected, the selection is left unchanged and nothing happens. If no text is currently selected, the previous word is cut to the clipboard.

backwardWordKey: aCharEvent

If any text is currently selected, the selection is left unchanged and nothing happens. If no text is currently selected and the cursor is inside a word of text, the cursor moves to the beginning of that word. If no text is currently selected and the cursor is in white space or at the beginning of a word, the cursor moves to the beginning of the previous word in the text.

beginningOfLineKey: aCharEvent

If any text is currently selected, the selection is left unchanged and nothing happens. If no text is currently selected, then like homeKey: the cursor moves to the left of the first character of the current line of text in the display.

beginningOfViewKey: aCharEvent

If any text is currently selected, the selection is left unchanged and nothing happens. If no text is currently selected, the cursor moves to the left of the first character in the text, and the view scrolls to show the beginning of the text.

boomBoomKey: aCharEvent

This method performs the same action as double clicking the mouse at the current cursor location. The new selection is then copied to the clipboard.

cancelKey: aCharEvent

This method executes the same methods that are executed if the undo item is chosen from the Text editor pop-up menu.

doItKey: aCharEvent

If no text is currently selected, the selection is left unchanged and nothing happens. If any text is currently selected, an attempt is made to compile the selection. If the compilation is unsuccessful, an error message is inserted into the text selection near the location of the error. If the compilation is successful, the compiled selection is executed. If the execution is unsuccessful, an exception may be raised (this depends on what was executed). In any event, if execution is unsuccessful, a walkback window will be raised. In most Paragraph editors, this executes the same methods that are executed if the do it menu item is chosen from the Text editor pop-up menu.

endOfLineKey: aCharEvent

If any text is currently selected, the selection is extended to the right of the last character of the current line of text in the display and the new selection is copied to the clipboard. If no text is currently selected, then like endKey: the cursor is to the right of the last character of the current line of text in the display.

endOfViewKey: aCharEvent

If any text is currently selected, the selection is left unchanged and nothing happens. If no text is currently selected, the cursor moves to the right of the last character in the text, and the view scrolls to show the end of the text.

enterKey: aCharEvent

If the Ctrl key is pressed, boomBoomKey: is called, otherwise displayCRKey: is called.

forwardCharKey: aCharEvent

If any text is currently selected, the selection is extended one character to the right, and the new selection is copied to the clipboard. If no text is currently selected, the cursor moves one character to the right.

forwardComplexKey: aCharEvent

If the Meta or Alt key is pressed, forwardWordKey: is called. If the Ctrl key is pressed, endOfLineKey: is called. If none of those keys are pressed, forwardCharKey: is called.

forwardDeleteCharKey: aCharEvent

If no text is currently selected, the character to the right of the cursor is cut to the clipboard.

forwardDeleteKey: aCharEvent

If any text is currently selected, backspaceKey: is called, otherwise one of the following takes place. If the Meta or Alt key is pressed, backwardDeleteWordKey: is called. If the Ctrl key is pressed, backwardDeleteLineKey: is called. If the Shift key is pressed, forwardDeleteCharKey: is called. If the Ctrl and Shift keys are pressed, forwardDeleteLineKey: is called. If none of those keys are pressed, backspaceKey: is called.

forwardDeleteLineKey: aCharEvent

If no text is currently selected, the text from the current cursor position to the last character on the current line is cut to the clipboard. If no text is currently selected, but the cursor position is at the end of a line, the carriage return at the end of the line is cut to the clipboard.

forwardDeleteWordKey: aCharEvent

If no text is currently selected and the cursor is in the middle of a word, the remainder of the word is cut to the clipboard. If no text is currently selected and the cursor is at the end of a word, the next word is cut to the clipboard.

forwardWordKey: aCharEvent

If any text is currently selected, the selection is extended one word to the right and the new selection is copied to the clipboard. If no text is currently selected and the cursor is inside a word, the cursor moves to the end of that word. If no text is currently selected and the cursor is in white space or at the end of a word, the cursor moves to the end of the next word in the text.

handleEndKey: aCharEvent

If any text is currently selected and the Ctrl key is pressed, quitSelectionStopKey: is called. If the Ctrl key is not pressed then endOfViewKey: is called.

handleHomeKey: aCharEvent

If any text is currently selected and the Ctrl key is pressed, quitSelectionStartKey: is called. If the Ctrl key is not pressed then beginningOfViewKey: is called.

hardcopyKey: aCharEvent

This method executes the same methods that are executed if the user picks the hardcopy item from the Text editor pop-up menu.

inspectItKey: aCharEvent

This method executes the same methods that are executed if the user picks the inspect item from the Text editor pop-up menu.

printItKey: aCharEvent

This method executes the same methods that are executed if the user picks the print it item from the Text editor pop-up menu.

quitSelectionStartKey: aCharEvent

If any text is currently selected, it is deselected, and the cursor moves to the left of the character which was the first character in the original selection.

quitSelectionStopKey: aChar

If any text is currently selected, it is deselected, and the cursor moves to the right of the character which was the last character in the original selection.


[ < Base keystroke methods ] [ Added keystroke methods > ]

[ Main ] [ Table of Contents ] [ Contact info ] [ Index ]

[ Home ]

This work is licensed under a Creative Commons License.

Creative Commons License