Important: The information in this document is obsolete and should not be used for new development.
Other Hardware Dependencies
The principle underlying virtual key codes is to have a single unique code per
character code, regardless of the keyboard used. Nevertheless, some hardware dependencies remain:
- The small Macintosh 512K Keyboard with ISO layout and the ISO ADB keyboards have an extra key not present on domestic keyboards. This key produces a virtual
key code of $0A.- There is a different virtual key code for the Enter key, depending on whether it is on the keypad ($4C on the Macintosh Plus keyboard and most ADB keyboards), or on the main section of the keyboard ($34 on the original Macintosh keyboard and the Macintosh Portable and PowerBook keyboards).
- Virtual key codes for cursor keys and some keypad operator keys differ between ADB keyboards and non-ADB (Macintosh Plus) keyboards, as shown in Table C-6. Note that on Macintosh Plus keyboards, the virtual key codes for keypad operators are the same as the virtual key codes for cursor keys. The Shift modifier controls which character code is generated. On these keyboards, for example, holding down the Shift key and pressing the Left Arrow key produces the plus character (+).