{"identifier":49516,"topic":"Commands","name":"tabKey","text":"<code>tabKey<\/code> <br><br>\n\n The<code> tabKey <\/code>command opens the first unlocked field on the current card or background (placing the insertion point in the field) and selects its entire contents. <br><br>\n\n If a field is already open for editing,<code> tabKey <\/code>closes it and opens the next editable field, selecting its contents. (A field is editable only if it is unlocked and visible.) <br>\n<br>\nThe<code> tabKey <\/code>command opens fields in the following order: from the lowest to the highest numbered background field, then from the lowest to the highest numbered card field. <br><br>\n\n HyperCard sends the<code> tabKey <\/code>command to a field or the current card when the user presses the Tab key. You can handle the<code> tabKey <\/code>message as follows: <br><br>\n\n <code><pre>on tabKey\n   <i>statements<\/i>\nend tabKey<\/pre><\/code> <br>\n","related":{"3428":"Commands sent automatically","36714":"enterKey","46524":"returnKey","6031":"Where messages are sent initially"},"examples":"-- Set the insertion point in the first editable field on openCard\non openCard  \n   tabKey  \nend openCard","demo":"<br><br>\n\n ","debug":{"9":["tabKey\r\rThe tabKey c"],"10":["The tabKey command o"]}}