User Interface Event Reference

This section describes how the user interface responds to keyboard accelerators, mouse actions, and toolbar buttons you invoke when using Zed.


Keyboard Accelerators
Mouse Actions
Toolbar Buttons

Zed responds to a number of user interface events to invoke operations in the editor. There are keyboard accelerators that invoke operations based on a particular keyboard combination. Mouse actions, including mouse clicks and mouse movement, also initiate certain kinds of actions. Finally, in the application edition, there are a collection of toolbars whose buttons act as aliases for menu items appearing on the frame menu.


Keyboard Accelerators

Menu keys
Custom keys
Template keys

Zed supports many of the common keyboard accelerators used by other applications, plus a number of fixed key bindings specific to Zed, plus others that can be customized using the assignments on the template configuration dialog.


Menu keys


Custom keys

Zed uses a few custom key bindings that are fixed in the sense of not being rebindable through the template configuration dialog.


Template keys

Zed supports a general mechanism for associating arbitrary keyboard accelerators with named templates and other special editing operations. Given the number of such key bindings and the ability to reconfigure these assignments, the paragraphs below merely list the keyboard accelerators in the default configuration, with pointers to more complete details contained in other sections.

Cursor movement accelerators:

Accelerators for token elements:

  • [#] Insert separator
  • [Backspace] Delete text left
  • [Delete] Delete text right

Delete operation accelerators:

  • [Backspace] Delete
  • [Delete] Delete
  • [Shift+Delete] Delete up

Arithmetic template accelerators:

Logic template accelerators:

Relation template accelerators:

Associative operator accelerators:

Nary operator accelerators:

Array operator accelerators:

Submit event accelerators:

  • [?]
  • [Enter]

Mouse Actions

Drag and Drop
Drag to Select
Click to Select
Extended Selection
Context menu
Focus Window

Zed uses mouse actions to position the expression cursor, to initiate drag and drop operations, to raise the document context menu, and to indicate the current focus window.


Drag and Drop

Zed provides drag and drop support according to the standard conventions for executing such operations. That is, when the left button is pressed within the extent of the current expression, a drag operation is initiated as soon as the mouse is moved outside the extent of the current expression. Once the drag operation is initiated, moving the mouse selects the target of the drop operation, and releasing the left mouse button initiates the drop operation, assuming the target accepts the data. Dropping an expression on a Zed window initiates a paste operation in the target window, and supports data in both MathML (using the plain text clipboard format) and HTML clipboard formats. Dropping file icons from other applications will also cause Zed to open the associated files.


Drag to Select

Pressing the left mouse button outside the extent of the current expression initiates a drag to select operation. That is, as the mouse is moved, a rectangle is defined using the initial and final points of the movement of the mouse while it is pressed, and that rectangle is used to set the current expression.


Click to Select

Releasing the left mouse button without moving the mouse, either inside or outside the extent of the current expression, initiates a click to select operation. That is, the point where the mouse is clicked is used to select the smallest expression whose extent contains the point.


Extended Selection

Holding down the Shift key while pressing the left mouse button initiates an extended selection operation. That is, the current expression is combined with the point where the mouse is clicked to select a range of child elements of a parent element, if a parent element is available that allows such selection.


Context menu

Zed responds to the release of the right mouse button to raise the document context menu, as is now standard practice among many applications. In the application edition of Zed, all of the items on the context menu are duplicated on the frame menu, to make them more obviously available to the user.


Focus Window

When the mouse moves outside the current window and another window is selected by clicking the mouse, the old window is said to lose the focus, and the new window is said to gain the focus, and to become the focus window. A Zed window indicates whether or not it is the focus window by the color of the expression cursor: a window with the focus has the expression cursor in black, while a window without the focus has the expression cursor in gray. Zed responds to gaining or losing the focus by changing the color appropriately.

In addition to changing the color of the expression cursor, Zed responds to gaining the focus by showing all of the active palette windows. When Zed loses the focus, it hides all of the active palette windows.


Toolbar Buttons

Standard
Format
Source
Option

The application edition of Zed provides four toolbars to give access to commands you may use often. The toolbars can be activated or deactivated by using the menu items on the Toolbar menu. The state of the toolbars is saved between sessions.


Standard


Format

The Format toolbar contains buttons and a combo box corresponding to menu items from the Format menu.


Source

The Source toolbar contains buttons corresponding to menu items from the Edit menu and Source menu.


Option