beautypg.com

Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual

Page 326

background image

C H A P T E R 8

Text and Ink Input and Display

8-34

Using Text

Figure 8-14

Keyboard codes

The Key Descriptor

8

The appearance of each key in a keyboard is determined by its key descriptor. The
key descriptor is a 30-bit value that determines the key size, framing, and other
characteristics. The descriptor is specified by combining any of the constants
shown in Table 8-8.

Table 8-8

Key descriptor constants

keySpacer

Nothing is drawn in this space; it is a spacer, not a key.

keyAutoHilite

Highlight this key when it is pressed.

keyInsetUnit

Inset this key’s frame a certain number of pixels within its
space. Multiply this constant by the number of pixels you
want to inset, from 0–7 (for example,

keyInsetUnit*3

).

continued

F13

F14

F15

num
lock

caps
lock

scroll
lock

=

/

7

8

9

4

5

6

1

2

3

0

.

_

+

num
lock

del

help

ins

home

page

up

end

page
down

enter

esc

F6

F7

F8

F5

F1

F2

F3

F4

F9

F10

F11

F12

alt

alt

2

3

4

5

6

7

8 9

0

+

@

#

%

^

&

(

)

Q

W

E

R

T

Y

U

I

O

P

A

S

D

F

G

H

J

K

L

Z

X

C

V

B

N

M

$

control

{

[

]

}

?

/

.

,

=

:

"

;

'

control

shift

caps

lock

tab

option

option

shift

delete

return

clear

1

`

35

7A 78

63 76

72

73

74

75 77

79

7B

7D 7C

7E

51 4B 43

47

5B 5C 4E

59

57

58

45

56

54

41

4C

52

53

55

37

37

12

13

14 15

17

16

1A 1C

19 1D

0C 0D 0E 0F 11

10

20

22

1F

23

00

01 02 03

05

04

26

28

25

07 08

09

0B 2D 2E 2B

21

1E

38

2C

2F

29

1B

33

18

32

30

39

27

24

06

38

31

3A

2A

3B

3A

7F7F

60

61

62 64

65

6D 67 6F

69

6B 71

3B

!

~