The mouseAction parameter may be used to query or set an action assignment for a specified mouse event.
query command
set command
The current view.
query mouseAction.[modifer-][...]{dragged | entered | exited | hover | moved | pressed.count | released.count }[.context][...] set mouseAction.[modifer-][...]{dragged | entered | exited | hover | moved | pressed.count | released.count }[.context][...] [action]
modifier | The modifier parameter can be any of 1, 2, 3, a, c, or s. 1 is used to indicate mouse button 1. 2 is used to indicate mouse button 2. 3 is used to indicate mouse button 3. a is used to indicate the alt key modifier. c is used to indicate the ctrl key modifier. s is used to indicate the shift key modifier. For example if you want to specify an action for double clicking mouse button 1 with the Ctrl and Alt keys pressed, you can specify c-a-1-pressed.2. |
dragged | Use the dragged parameter to assign an action to the mouse dragged event. |
entered | Use the entered parameter to assign an action to the mouse entered event. |
exited | Use the exited parameter to assign an action to the mouse exited event. |
hover | Use the hover parameter to assign an action to the mouse hover event. |
moved | Use the moved parameter to assign an action to the mouse moved event. |
pressed.count | Use the pressed parameter to assign an action to a mouse pressed event. The count parameter indicates the number of button clicks that are associated with the event. |
released.count | Use the released parameter to assign an action to a mouse released event. The count parameter indicates the number of button clicks that are associated with the event. |
context | The context parameter can be any of t, p, or e. t is used to indicate that the mouse action should be available when the mouse cursor is in the text area. p is used to indicate that the mouse action should be available when the mouse cursor is in the prefix area. e is used to indicate that the mouse action should be available when the mouse cursor is in the expand/hide area. If you do not specify a context, the context is assumed to be t. |
action | Use the action parameter to specify the action that you want assigned to the specified mouse event. If you do not specify an action, the event will have no action assigned to it. |
The actual mouse events received by the editor depend on the environment (workstation configuration, operating system, Java support, etc.) in which the editor is running. Certain mouse actions may not be activated in some environments.
query mouseAction.popup set mouseAction.1-pressed.1.t.p cursorToMouse
query command
set command
mouseEvents parameter
updateProfile.userMouseActions parameter