Title Banner

Previous Book Contents Book Index Next

Newton Developer Technical Information: Newton Programmer's Guide: 2.1 OS Addendum /


Chapter 4 Keyboard Enhancements

This chapter describes the expanded toolbox support that is provided in the Newton 2.1 Operating System (OS). This chapter provides you with information about the new software facilities for defining, processing, and displaying keyboard commands and shortcuts, including the following:

The features described in this chapter apply to all forthcoming Newton-based devices.


Chapter Contents
About Keyboard Enhancements
Terminology
About Keystroke Handling
Keystroke Event Sequencing
Key-down Events
Key-repeat Events
Key-release Events
Typing Without a Caret
About Command Key Handling
How Command Keys Are Found
About Displaying Command-Key Combinations in Menus
About Keyboard Support in Pickers
Calling a Key-Command Method From a Picker Script
Keyboard Enhancements User Interface
General Usage
Text entry and editing
Slips, windows, and buttons
Menus
The Command-key Combination popup Help Slip
System and Built-in App Command Key Assignments
Command-key Assignments for the NotePad Application
Command-Key Assignments for The Names Application
Command-Key Assignments for The Dates Application
Command-Key Assignments for The In/Out Box
Command-Key Assignments for The Call Log
Command-Key Assignments for the BookPlayer
Compatibility
Default Buttons
Possible Key-view Compatibility Problem
Using the Keyboard Enhancements
Keystroke Handling
Intercepting Keystrokes Directly
Intercepting Individual Keystrokes
Intercepting Grouped Keystrokes
Text Flags and Keyboard Input
Handling Command Keys
Searching for Key Commands
Defining Key Commands
Adding the Key-Commands
Invoking the Command-Key Method
Removing Key-Commands
Displaying the Popup Command Key Help Slip
The Caret Stack and Caret Activation
Using Keys in Slips
Designating the Default Button In a Slip
Designating a Slip's Close Box
Default and Close Buttons in Confirm Slips
Keyboard Reference
Data Structures
The Command-Key Mapping Frame
Methods and Functions for Handling Keystrokes
HandleKeyEvents
IsCommandKeystroke
IsKeyDown
Methods and Functions for Handling Command Keys
AddKeyCommand
AddKeyCommands
BlockKeyCommand
CategorizeKeyCommands
RemoveKeyCommandFrame
ClearKeyCommands
FindKeyCommand
GatherKeyCommands
PressButton
SendKeyMessage
Application-Defined Methods for Keystroke Events
ViewKeyDownScript
ViewKeyUpScript
ViewKeyRepeatScript
ViewKeyStringScript
Summary of Keyboard Enhancements
Data Structures
Command-Key MappingFrame
Methods and Functions

Previous Book Contents Book Index Next

© Apple Computer, Inc.
26 APR 1997



Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help