HyperCard: Placing Insertion Point in a New Card (7/92)

Users often want to open a new card and have HyperCard automatically place
the cursor (I-beam insertion point) on the first line of the first field on
the card, rather than having to click at this location with their mouse or
having to use their Tab key. Here's a handler that does it automatically.

on openCard
tabKey
end openCard

The tabKey function places the cursor automatically in the first line of
the first field in the Tab order or a HyperCard stack. If the field is not
empty, the whole text of the first line will be selected.

This script works on all versions of HyperCard from 1.2.5 through 2.1x.


This article is adapted from the Claris Tech Info database.
Published Date: Feb 19, 2012