Common Desktop Environment: Style Guide and Certification Checklist

Selection Actions

 

n/a 

 

 

 

Required 

4-29: 

When the keyboard focus policy is explicit, the destination component is the editable component that last had the keyboard focus. When the keyboard focus policy is implicit, the destination component is the editable component that last received mouse button or keyboard input.  

The destination component is used to identify the component on which certain operations, primarily data transfer operations, act. There is only one destination component at a time. 

Required 

4-30: 

If the keyboard focus is in a component (or a pop-up menu of a component) that supports selections, operations that act on a selection act on the selection in that component.  

A selection operation acts on the component that has focus, if that component supports selections. 

Required 

4-31: 

If the keyboard focus is in a component (or a pop-up menu of a component) that supports some operation that does not act on a selection, invoking the operation acts on that component.  

An operation that does not act on a selection acts on the component that has focus, if that component supports the operation. 

Required 

4-32: 

Inserting or pasting elements into a selection, except for a primary transfer operation at the bounds of the primary selection, first deletes the selection if pending delete is enabled.  

Pending delete controls the conditions under which the selection is deleted. It is enabled by default. 

Required 

4-33: 

In normal mode, inserting or pasting elements disjoint from the selection also deselects the selection, except for primary transfer operations whose source and destination are in the same collection. In add mode, the selection is not deselected.  

In add mode, a transfer operation that is disjoint from the selection does not affect the selection. 

Required 

4-34: 

In editable list-like and graphics-like collections, Delete deletes the selected elements.  

Delete provides a consistent means of deleting the selection. 

Required 

4-35: 

In editable text-like collections, Delete and Backspace behave as follows:  

  • If the selection is not empty and the control is in normal mode, the selection is deleted.

  • If the selection is not empty, the control is in add mode, and the cursor is not disjoint from the selection, the selection is deleted.

  • If the selection is not empty and the control is in add mode, but the cursor is disjoint from the selection, Delete deletes one character forward, and Backspace deletes one character backward.

  • If the selection is empty, Delete deletes one character forward, and Backspace deletes one character backward.

In text, Delete and Backspace provide a convenient way to delete the entire selection or single characters.