harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavlenko, Andrey A" <andrey.a.pavle...@intel.com>
Subject [AWT] [KeyEvent] Harmony/RI diff
Date Tue, 12 Dec 2006 12:29:28 GMT
Hi All,

 

The methods of the class java.awt.event.KeyEvent getKeyText
<file:///C:\home\Save\Doc\Java\spec\1.5\api\java\awt\event\KeyEvent.html
#getKeyText%28int%29> (int keyCode) and getKeyModifiersText
<file:///C:\home\Save\Doc\Java\spec\1.5\api\java\awt\event\KeyEvent.html
#getKeyModifiersText%28int%29> (int modifiers) produce different results
on Harmony and RI. Is it Ok? I haven't found anything about that in the
spec.

 

Below is a table demonstrating the difference between Harmony and RI.

 

RI (id|KeyText|KeyModifiersText)

Harmony(id|KeyText|KeyModifiersText)

0|Unknown keyCode: 0x0|

1|Unknown keyCode: 0x1|Shift

2|Unknown keyCode: 0x2|Ctrl

3|Cancel|Ctrl+Shift

4|Unknown keyCode: 0x4|Meta

8|Backspace|Alt

9|Tab|Alt+Shift

10|Enter|Ctrl+Alt

12|Clear|Meta+Alt

16|Shift|Button1

17|Ctrl|Shift+Button1

18|Alt|Ctrl+Button1

19|Pause|Ctrl+Shift+Button1

20|Caps Lock|Meta+Button1

21|Kana|Meta+Shift+Button1

24|Final|Alt+Button1

25|Kanji|Alt+Shift+Button1

27|Escape|Ctrl+Alt+Shift+Button1

28|Convert|Meta+Alt+Button1

29|No Convert|Meta+Alt+Shift+Button1

30|Accept|Meta+Ctrl+Alt+Button1

31|Mode Change|Meta+Ctrl+Alt+Shift+Button1

32|Space|Alt Graph

33|Page Up|Shift+Alt Graph

34|Page Down|Ctrl+Alt Graph

35|End|Ctrl+Shift+Alt Graph

36|Home|Meta+Alt Graph

37|Left|Meta+Shift+Alt Graph

38|Up|Meta+Ctrl+Alt Graph

39|Right|Meta+Ctrl+Shift+Alt Graph

40|Down|Alt+Alt Graph

44|Comma|Meta+Alt+Alt Graph

45|Minus|Meta+Alt+Shift+Alt Graph

46|Period|Meta+Ctrl+Alt+Alt Graph

47|Slash|Meta+Ctrl+Alt+Shift+Alt Graph

48|0|Alt Graph+Button1

49|1|Shift+Alt Graph+Button1

50|2|Ctrl+Alt Graph+Button1

51|3|Ctrl+Shift+Alt Graph+Button1

52|4|Meta+Alt Graph+Button1

53|5|Meta+Shift+Alt Graph+Button1

54|6|Meta+Ctrl+Alt Graph+Button1

55|7|Meta+Ctrl+Shift+Alt Graph+Button1

56|8|Alt+Alt Graph+Button1

57|9|Alt+Shift+Alt Graph+Button1

59|Semicolon|Ctrl+Alt+Shift+Alt Graph+Button1

61|Equals|Meta+Alt+Shift+Alt Graph+Button1

65|A|Shift

66|B|Ctrl

67|C|Ctrl+Shift

68|D|Meta

69|E|Meta+Shift

70|F|Meta+Ctrl

71|G|Meta+Ctrl+Shift

72|H|Alt

73|I|Alt+Shift

74|J|Ctrl+Alt

75|K|Ctrl+Alt+Shift

76|L|Meta+Alt

77|M|Meta+Alt+Shift

78|N|Meta+Ctrl+Alt

79|O|Meta+Ctrl+Alt+Shift

80|P|Button1

81|Q|Shift+Button1

82|R|Ctrl+Button1

83|S|Ctrl+Shift+Button1

84|T|Meta+Button1

85|U|Meta+Shift+Button1

86|V|Meta+Ctrl+Button1

87|W|Meta+Ctrl+Shift+Button1

88|X|Alt+Button1

89|Y|Alt+Shift+Button1

90|Z|Ctrl+Alt+Button1

91|Open Bracket|Ctrl+Alt+Shift+Button1

92|Back Slash|Meta+Alt+Button1

93|Close Bracket|Meta+Alt+Shift+Button1

96|NumPad-0|Alt Graph

97|NumPad-1|Shift+Alt Graph

98|NumPad-2|Ctrl+Alt Graph

99|NumPad-3|Ctrl+Shift+Alt Graph

100|NumPad-4|Meta+Alt Graph

101|NumPad-5|Meta+Shift+Alt Graph

102|NumPad-6|Meta+Ctrl+Alt Graph

103|NumPad-7|Meta+Ctrl+Shift+Alt Graph

104|NumPad-8|Alt+Alt Graph

105|NumPad-9|Alt+Shift+Alt Graph

106|NumPad *|Ctrl+Alt+Alt Graph

107|NumPad +|Ctrl+Alt+Shift+Alt Graph

108|NumPad ,|Meta+Alt+Alt Graph

108|NumPad ,|Meta+Alt+Alt Graph

109|NumPad -|Meta+Alt+Shift+Alt Graph

110|NumPad .|Meta+Ctrl+Alt+Alt Graph

111|NumPad /|Meta+Ctrl+Alt+Shift+Alt Graph

112|F1|Alt Graph+Button1

113|F2|Shift+Alt Graph+Button1

114|F3|Ctrl+Alt Graph+Button1

115|F4|Ctrl+Shift+Alt Graph+Button1

116|F5|Meta+Alt Graph+Button1

117|F6|Meta+Shift+Alt Graph+Button1

118|F7|Meta+Ctrl+Alt Graph+Button1

119|F8|Meta+Ctrl+Shift+Alt Graph+Button1

120|F9|Alt+Alt Graph+Button1

121|F10|Alt+Shift+Alt Graph+Button1

122|F11|Ctrl+Alt+Alt Graph+Button1

123|F12|Ctrl+Alt+Shift+Alt Graph+Button1

127|Delete|Meta+Ctrl+Alt+Shift+Alt Graph+Button1

128|Dead Grave|

129|Dead Acute|Shift

130|Dead Circumflex|Ctrl

131|Dead Tilde|Ctrl+Shift

132|Dead Macron|Meta

133|Dead Breve|Meta+Shift

134|Dead Above Dot|Meta+Ctrl

135|Dead Diaeresis|Meta+Ctrl+Shift

136|Dead Above Ring|Alt

137|Dead Double Acute|Alt+Shift

138|Dead Caron|Ctrl+Alt

139|Dead Cedilla|Ctrl+Alt+Shift

140|Dead Ogonek|Meta+Alt

141|Dead Iota|Meta+Alt+Shift

142|Dead Voiced Sound|Meta+Ctrl+Alt

143|Dead Semivoiced Sound|Meta+Ctrl+Alt+Shift

144|Num Lock|Button1

145|Scroll Lock|Shift+Button1

150|Ampersand|Meta+Ctrl+Button1

151|Asterisk|Meta+Ctrl+Shift+Button1

152|Double Quote|Alt+Button1

153|Less|Alt+Shift+Button1

154|Print Screen|Ctrl+Alt+Button1

155|Insert|Ctrl+Alt+Shift+Button1

156|Help|Meta+Alt+Button1

157|Meta|Meta+Alt+Shift+Button1

160|Greater|Alt Graph

161|Left Brace|Shift+Alt Graph

162|Right Brace|Ctrl+Alt Graph

192|Back Quote|

222|Quote|Meta+Ctrl+Alt+Button1

224|Up|Alt Graph

225|Down|Shift+Alt Graph

226|Left|Ctrl+Alt Graph

227|Right|Ctrl+Shift+Alt Graph

240|Alphanumeric|Alt Graph+Button1

241|Katakana|Shift+Alt Graph+Button1

242|Hiragana|Ctrl+Alt Graph+Button1

243|Full-Width|Ctrl+Shift+Alt Graph+Button1

244|Half-Width|Meta+Alt Graph+Button1

245|Roman Characters|Meta+Shift+Alt Graph+Button1

256|All Candidates|

257|Previous Candidate|Shift

258|Code Input|Ctrl

259|Japanese Katakana|Ctrl+Shift

260|Japanese Hiragana|Meta

261|Japanese Roman|Meta+Shift

262|Kana Lock|Meta+Ctrl

263|Input Method On/Off|Meta+Ctrl+Shift

400|Unknown keyCode: 0x190|Button1

400|Unknown keyCode: 0x190|Button1

401|Unknown keyCode: 0x191|Shift+Button1

402|Unknown keyCode: 0x192|Ctrl+Button1

402|Unknown keyCode: 0x192|Ctrl+Button1

512|At|

513|Colon|Shift

514|Circumflex|Ctrl

515|Dollar|Ctrl+Shift

516|Euro|Meta

517|Exclamation Mark|Meta+Shift

518|Inverted Exclamation Mark|Meta+Ctrl

519|Left Parenthesis|Meta+Ctrl+Shift

520|Number Sign|Alt

521|Plus|Alt+Shift

522|Right Parenthesis|Ctrl+Alt

523|Underscore|Ctrl+Alt+Shift

524|Windows|Meta+Alt

525|Context Menu|Meta+Alt+Shift

61440|F13|

61441|F14|Shift

61442|F15|Ctrl

61443|F16|Ctrl+Shift

61444|F17|Meta

61445|F18|Meta+Shift

61446|F19|Meta+Ctrl

61447|F20|Meta+Ctrl+Shift

61448|F21|Alt

61449|F22|Alt+Shift

61450|F23|Ctrl+Alt

61451|F24|Ctrl+Alt+Shift

65312|Compose|Alt Graph

65368|Begin|Alt+Button1

65406|Alt Graph|Meta+Ctrl+Alt+Alt Graph+Button1

65480|Stop|Alt

65481|Again|Alt+Shift

65482|Props|Ctrl+Alt

65483|Undo|Ctrl+Alt+Shift

65485|Copy|Meta+Alt+Shift

65487|Paste|Meta+Ctrl+Alt+Shift

65488|Find|Button1

65489|Cut|Shift+Button1

0|Undefined|

1|Location Standard|Shift

2|Location Left|Ctrl

3|Cancel|Ctrl+Shift

4|Location Numpad|Meta

8|Back Space|Alt

9|Tab|Alt+Shift

10|Enter|Ctrl+Alt

12|Clear|Meta+Alt

16|Shift|

17|Control|Shift

18|Alt|Ctrl

19|Pause|Ctrl+Shift

20|Caps Lock|Meta

21|Kana|Meta+Shift

24|Final|Alt

25|Kanji|Alt+Shift

27|Escape|Ctrl+Alt+Shift

28|Convert|Meta+Alt

29|Nonconvert|Meta+Alt+Shift

30|Accept|Meta+Ctrl+Alt

31|Modechange|Meta+Ctrl+Alt+Shift

32|Space|Alt Graph

33|Page Up|Shift+Alt Graph

34|Page Down|Ctrl+Alt Graph

35|End|Ctrl+Shift+Alt Graph

36|Home|Meta+Alt Graph

37|Left|Meta+Shift+Alt Graph

38|Up|Meta+Ctrl+Alt Graph

39|Right|Meta+Ctrl+Shift+Alt Graph

40|Down|Alt+Alt Graph

44|Comma|Meta+Alt+Alt Graph

45|Minus|Meta+Alt+Shift+Alt Graph

46|Period|Meta+Ctrl+Alt+Alt Graph

47|Slash|Meta+Ctrl+Alt+Shift+Alt Graph

48|0|Alt Graph

49|1|Shift+Alt Graph

50|2|Ctrl+Alt Graph

51|3|Ctrl+Shift+Alt Graph

52|4|Meta+Alt Graph

53|5|Meta+Shift+Alt Graph

54|6|Meta+Ctrl+Alt Graph

55|7|Meta+Ctrl+Shift+Alt Graph

56|8|Alt+Alt Graph

57|9|Alt+Shift+Alt Graph

59|Semicolon|Ctrl+Alt+Shift+Alt Graph

61|Equals|Meta+Alt+Shift+Alt Graph

65|A|Shift

66|B|Ctrl+Shift

67|C|Ctrl+Shift

68|D|Meta+Shift

69|E|Meta+Shift

70|F|Meta+Ctrl+Shift

71|G|Meta+Ctrl+Shift

72|H|Alt+Shift

73|I|Alt+Shift

74|J|Ctrl+Alt+Shift

75|K|Ctrl+Alt+Shift

76|L|Meta+Alt+Shift

77|M|Meta+Alt+Shift

78|N|Meta+Ctrl+Alt+Shift

79|O|Meta+Ctrl+Alt+Shift

80|P|Shift

81|Q|Shift

82|R|Ctrl+Shift

83|S|Ctrl+Shift

84|T|Meta+Shift

85|U|Meta+Shift

86|V|Meta+Ctrl+Shift

87|W|Meta+Ctrl+Shift

88|X|Alt+Shift

89|Y|Alt+Shift

90|Z|Ctrl+Alt+Shift

91|Open Bracket|Ctrl+Alt+Shift

92|Back Slash|Meta+Alt+Shift

93|Close Bracket|Meta+Alt+Shift

96|Numpad0|Shift+Alt Graph

97|Numpad1|Shift+Alt Graph

98|Numpad2|Ctrl+Shift+Alt Graph

99|Numpad3|Ctrl+Shift+Alt Graph

100|Numpad4|Meta+Shift+Alt Graph

101|Numpad5|Meta+Shift+Alt Graph

102|Numpad6|Meta+Ctrl+Shift+Alt Graph

103|Numpad7|Meta+Ctrl+Shift+Alt Graph

104|Numpad8|Alt+Shift+Alt Graph

105|Numpad9|Alt+Shift+Alt Graph

106|Multiply|Ctrl+Alt+Shift+Alt Graph

107|Add|Ctrl+Alt+Shift+Alt Graph

108|Separater|Meta+Alt+Shift+Alt Graph

108|Separater|Meta+Alt+Shift+Alt Graph

109|Subtract|Meta+Alt+Shift+Alt Graph

110|Decimal|Meta+Ctrl+Alt+Shift+Alt Graph

111|Divide|Meta+Ctrl+Alt+Shift+Alt Graph

112|F1|Shift+Alt Graph

113|F2|Shift+Alt Graph

114|F3|Ctrl+Shift+Alt Graph

115|F4|Ctrl+Shift+Alt Graph

116|F5|Meta+Shift+Alt Graph

117|F6|Meta+Shift+Alt Graph

118|F7|Meta+Ctrl+Shift+Alt Graph

119|F8|Meta+Ctrl+Shift+Alt Graph

120|F9|Alt+Shift+Alt Graph

121|F10|Alt+Shift+Alt Graph

122|F11|Ctrl+Alt+Shift+Alt Graph

123|F12|Ctrl+Alt+Shift+Alt Graph

127|Delete|Meta+Ctrl+Alt+Shift+Alt Graph

128|Dead Grave|Ctrl

129|Dead Acute|Ctrl+Shift

130|Dead Circumflex|Ctrl

131|Dead Tilde|Ctrl+Shift

132|Dead Macron|Meta+Ctrl

133|Dead Breve|Meta+Ctrl+Shift

134|Dead Abovedot|Meta+Ctrl

135|Dead Diaeresis|Meta+Ctrl+Shift

136|Dead Abovering|Ctrl+Alt

137|Dead Doubleacute|Ctrl+Alt+Shift

138|Dead Caron|Ctrl+Alt

139|Dead Cedilla|Ctrl+Alt+Shift

140|Dead Ogonek|Meta+Ctrl+Alt

141|Dead Iota|Meta+Ctrl+Alt+Shift

142|Dead Voiced Sound|Meta+Ctrl+Alt

143|Dead Semivoiced Sound|Meta+Ctrl+Alt+Shift

144|Num Lock|Ctrl

145|Scroll Lock|Ctrl+Shift

150|Ampersand|Meta+Ctrl

151|Asterisk|Meta+Ctrl+Shift

152|Quotedbl|Ctrl+Alt

153|Less|Ctrl+Alt+Shift

154|Printscreen|Ctrl+Alt

155|Insert|Ctrl+Alt+Shift

156|Help|Meta+Ctrl+Alt

157|Meta|Meta+Ctrl+Alt+Shift

160|Greater|Ctrl+Alt Graph

161|Braceleft|Ctrl+Shift+Alt Graph

162|Braceright|Ctrl+Alt Graph

192|Back Quote|Ctrl+Shift

222|Quote|Meta+Ctrl+Alt+Shift

224|Kp Up|Ctrl+Shift+Alt Graph

225|Kp Down|Ctrl+Shift+Alt Graph

226|Kp Left|Ctrl+Shift+Alt Graph

227|Kp Right|Ctrl+Shift+Alt Graph

240|Alphanumeric|Ctrl+Shift+Alt Graph

241|Katakana|Ctrl+Shift+Alt Graph

242|Hiragana|Ctrl+Shift+Alt Graph

243|Full Width|Ctrl+Shift+Alt Graph

244|Half Width|Meta+Ctrl+Shift+Alt Graph

245|Roman Characters|Meta+Ctrl+Shift+Alt Graph

256|All Candidates|Meta

257|Previous Candidate|Meta+Shift

258|Code Input|Meta+Ctrl

259|Japanese Katakana|Meta+Ctrl+Shift

260|Japanese Hiragana|Meta

261|Japanese Roman|Meta+Shift

262|Kana Lock|Meta+Ctrl

263|Input Method On Off|Meta+Ctrl+Shift

400|First|Meta+Ctrl

400|First|Meta+Ctrl

401|Pressed|Meta+Ctrl+Shift

402|Last|Meta+Ctrl

402|Last|Meta+Ctrl

512|At|Alt

513|Colon|Alt+Shift

514|Circumflex|Ctrl+Alt

515|Dollar|Ctrl+Alt+Shift

516|Euro Sign|Meta+Alt

517|Exclamation Mark|Meta+Alt+Shift

518|Inverted Exclamation Mark|Meta+Ctrl+Alt

519|Left Parenthesis|Meta+Ctrl+Alt+Shift

520|Number Sign|Alt

521|Plus|Alt+Shift

522|Right Parenthesis|Ctrl+Alt

523|Underscore|Ctrl+Alt+Shift

524|Windows|Meta+Alt

525|Context Menu|Meta+Alt+Shift

61440|F13|Alt Graph

61441|F14|Shift+Alt Graph

61442|F15|Ctrl+Alt Graph

61443|F16|Ctrl+Shift+Alt Graph

61444|F17|Meta+Alt Graph

61445|F18|Meta+Shift+Alt Graph

61446|F19|Meta+Ctrl+Alt Graph

61447|F20|Meta+Ctrl+Shift+Alt Graph

61448|F21|Alt+Alt Graph

61449|F22|Alt+Shift+Alt Graph

61450|F23|Ctrl+Alt+Alt Graph

61451|F24|Ctrl+Alt+Shift+Alt Graph

65312|Compose|Meta+Alt+Alt Graph

65368|Begin|Meta+Alt+Shift+Alt Graph

65406|Alt Graph|Meta+Ctrl+Alt+Shift+Alt Graph

65480|Stop|Meta+Ctrl+Alt+Shift+Alt Graph

65481|Again|Meta+Ctrl+Alt+Shift+Alt Graph

65482|Props|Meta+Ctrl+Alt+Shift+Alt Graph

65483|Undo|Meta+Ctrl+Alt+Shift+Alt Graph

65485|Copy|Meta+Ctrl+Alt+Shift+Alt Graph

65487|Paste|Meta+Ctrl+Alt+Shift+Alt Graph

65488|Find|Meta+Ctrl+Alt+Shift+Alt Graph

65489|Cut|Meta+Ctrl+Alt+Shift+Alt Graph

 

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message