Browse Prior Art Database

Screening the Delete-Key Accelerator while Editing Icon or Title Text

IP.com Disclosure Number: IPCOM000113223D
Original Publication Date: 1994-Jul-01
Included in the Prior Art Database: 2005-Mar-27
Document File: 2 page(s) / 78K

Publishing Venue

IBM

Related People

Johnson, KD: AUTHOR [+2]

Abstract

The Delete key is the key recommended by the Common User Access* (CUA) standards to serve as the accelerator for the delete function. In an OS/2* 2.1 Presentation Manager* (PM) container control, pressing the Delete key should serve as as accelerator to trigger the deletion (with or without confirmation) of all selected icons in the container. Applications such as LAN NetView* View assign the Delete key as an application accelerator for containers, generating a predefined message and ID to the window which has the focus when the key is pressed.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 52% of the total text.

Screening the Delete-Key Accelerator while Editing Icon or Title Text

      The Delete key is the key recommended by the Common User
Access* (CUA) standards to serve as the accelerator for the delete
function.  In an OS/2* 2.1 Presentation Manager* (PM) container
control, pressing the Delete key should serve as as accelerator to
trigger the deletion (with or without confirmation) of all selected
icons in the container.  Applications such as LAN NetView* View
assign the Delete key as an application accelerator for containers,
generating a predefined message and ID to the window which has the
focus when the key is pressed.

      A problem exists when the user is editing the icon text of one
of the icons in the container, or editing the title bar text of the
window itself.  These text editing functions are implemented using PM
entry fields.  The Delete key has a different meaning when pressed
while in an entry field, ie, to remove the character under or to the
right of the cursor.  The Delete accelerator action for the container
should not occur when the Delete key is directed to an entry field.
Unfortunately, the default PM behavior does in fact generate the
Delete accelerator message to the window in this situation.  Since
the user certainly does not intend to delete icons in the container
when he or she is typing in an entry field, this is a serious
usability problem.

      Described is a technique to overcome this problem such that the
Delete key performs the standard entry field delete processing when
editing the icon or title text, but performs the standard container
accelerator function in all other situations.

      The source of the problem is default PM processing.  When an
entry field processes a keystroke, that keystroke should not be
passed on to the owner of the entry field for additional processing.
The Delete key is in fact passed on by PM to the entry field's owner,
even though the entry field also processed it.  The keystroke message
works its way up the owner chain until the window default procedure
converts it into its respective accelerator and generates the
accelerator message back to the window for processing.

      The solution to overcoming this problem lies i...