Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
952a919f
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
952a919f
编写于
6月 07, 2012
作者:
L
littlee
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7174233: Openjdk is missing some key maps on the Japanese keyboards
Reviewed-by: anthony, naoto
上级
c5ab40d9
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
35 addition
and
0 deletion
+35
-0
src/solaris/classes/sun/awt/X11/XKeysym.java
src/solaris/classes/sun/awt/X11/XKeysym.java
+16
-0
src/solaris/native/sun/xawt/XWindow.c
src/solaris/native/sun/xawt/XWindow.c
+19
-0
未找到文件。
src/solaris/classes/sun/awt/X11/XKeysym.java
浏览文件 @
952a919f
...
...
@@ -1416,6 +1416,7 @@ public class XKeysym {
keysym2JavaKeycodeHash
.
put
(
Long
.
valueOf
(
XKeySymConstants
.
XK_Meta_L
),
new
Keysym2JavaKeycode
(
java
.
awt
.
event
.
KeyEvent
.
VK_META
,
java
.
awt
.
event
.
KeyEvent
.
KEY_LOCATION_LEFT
));
keysym2JavaKeycodeHash
.
put
(
Long
.
valueOf
(
XKeySymConstants
.
XK_Meta_R
),
new
Keysym2JavaKeycode
(
java
.
awt
.
event
.
KeyEvent
.
VK_META
,
java
.
awt
.
event
.
KeyEvent
.
KEY_LOCATION_RIGHT
));
keysym2JavaKeycodeHash
.
put
(
Long
.
valueOf
(
XKeySymConstants
.
XK_Caps_Lock
),
new
Keysym2JavaKeycode
(
java
.
awt
.
event
.
KeyEvent
.
VK_CAPS_LOCK
,
java
.
awt
.
event
.
KeyEvent
.
KEY_LOCATION_STANDARD
));
keysym2JavaKeycodeHash
.
put
(
Long
.
valueOf
(
XKeySymConstants
.
XK_Shift_Lock
),
new
Keysym2JavaKeycode
(
java
.
awt
.
event
.
KeyEvent
.
VK_CAPS_LOCK
,
java
.
awt
.
event
.
KeyEvent
.
KEY_LOCATION_STANDARD
));
/* Misc Functions */
keysym2JavaKeycodeHash
.
put
(
Long
.
valueOf
(
XKeySymConstants
.
XK_Print
),
new
Keysym2JavaKeycode
(
java
.
awt
.
event
.
KeyEvent
.
VK_PRINTSCREEN
,
java
.
awt
.
event
.
KeyEvent
.
KEY_LOCATION_STANDARD
));
...
...
@@ -1590,6 +1591,21 @@ public class XKeysym {
keysym2JavaKeycodeHash
.
put
(
Long
.
valueOf
(
XKeySymConstants
.
XK_Kanji
),
new
Keysym2JavaKeycode
(
java
.
awt
.
event
.
KeyEvent
.
VK_CONVERT
,
java
.
awt
.
event
.
KeyEvent
.
KEY_LOCATION_STANDARD
));
/* Type 5c Japanese keyboard: nihongo */
keysym2JavaKeycodeHash
.
put
(
Long
.
valueOf
(
XKeySymConstants
.
XK_Henkan_Mode
),
new
Keysym2JavaKeycode
(
java
.
awt
.
event
.
KeyEvent
.
VK_INPUT_METHOD_ON_OFF
,
java
.
awt
.
event
.
KeyEvent
.
KEY_LOCATION_STANDARD
));
keysym2JavaKeycodeHash
.
put
(
Long
.
valueOf
(
XKeySymConstants
.
XK_Eisu_Shift
),
new
Keysym2JavaKeycode
(
java
.
awt
.
event
.
KeyEvent
.
VK_ALPHANUMERIC
,
java
.
awt
.
event
.
KeyEvent
.
KEY_LOCATION_STANDARD
));
keysym2JavaKeycodeHash
.
put
(
Long
.
valueOf
(
XKeySymConstants
.
XK_Eisu_toggle
),
new
Keysym2JavaKeycode
(
java
.
awt
.
event
.
KeyEvent
.
VK_ALPHANUMERIC
,
java
.
awt
.
event
.
KeyEvent
.
KEY_LOCATION_STANDARD
));
keysym2JavaKeycodeHash
.
put
(
Long
.
valueOf
(
XKeySymConstants
.
XK_Zenkaku
),
new
Keysym2JavaKeycode
(
java
.
awt
.
event
.
KeyEvent
.
VK_FULL_WIDTH
,
java
.
awt
.
event
.
KeyEvent
.
KEY_LOCATION_STANDARD
));
keysym2JavaKeycodeHash
.
put
(
Long
.
valueOf
(
XKeySymConstants
.
XK_Hankaku
),
new
Keysym2JavaKeycode
(
java
.
awt
.
event
.
KeyEvent
.
VK_HALF_WIDTH
,
java
.
awt
.
event
.
KeyEvent
.
KEY_LOCATION_STANDARD
));
keysym2JavaKeycodeHash
.
put
(
Long
.
valueOf
(
XKeySymConstants
.
XK_Hiragana
),
new
Keysym2JavaKeycode
(
java
.
awt
.
event
.
KeyEvent
.
VK_HIRAGANA
,
java
.
awt
.
event
.
KeyEvent
.
KEY_LOCATION_STANDARD
));
keysym2JavaKeycodeHash
.
put
(
Long
.
valueOf
(
XKeySymConstants
.
XK_Katakana
),
new
Keysym2JavaKeycode
(
java
.
awt
.
event
.
KeyEvent
.
VK_KATAKANA
,
java
.
awt
.
event
.
KeyEvent
.
KEY_LOCATION_STANDARD
));
keysym2JavaKeycodeHash
.
put
(
Long
.
valueOf
(
XKeySymConstants
.
XK_Romaji
),
new
Keysym2JavaKeycode
(
java
.
awt
.
event
.
KeyEvent
.
VK_JAPANESE_ROMAN
,
java
.
awt
.
event
.
KeyEvent
.
KEY_LOCATION_STANDARD
));
keysym2JavaKeycodeHash
.
put
(
Long
.
valueOf
(
XKeySymConstants
.
XK_Kana_Shift
),
new
Keysym2JavaKeycode
(
java
.
awt
.
event
.
KeyEvent
.
VK_KANA
,
java
.
awt
.
event
.
KeyEvent
.
KEY_LOCATION_STANDARD
));
keysym2JavaKeycodeHash
.
put
(
Long
.
valueOf
(
XKeySymConstants
.
XK_Kana_Lock
),
new
Keysym2JavaKeycode
(
java
.
awt
.
event
.
KeyEvent
.
VK_KANA_LOCK
,
java
.
awt
.
event
.
KeyEvent
.
KEY_LOCATION_STANDARD
));
keysym2JavaKeycodeHash
.
put
(
Long
.
valueOf
(
XKeySymConstants
.
XK_Muhenkan
),
new
Keysym2JavaKeycode
(
java
.
awt
.
event
.
KeyEvent
.
VK_NONCONVERT
,
java
.
awt
.
event
.
KeyEvent
.
KEY_LOCATION_STANDARD
));
keysym2JavaKeycodeHash
.
put
(
Long
.
valueOf
(
XKeySymConstants
.
XK_Zen_Koho
),
new
Keysym2JavaKeycode
(
java
.
awt
.
event
.
KeyEvent
.
VK_ALL_CANDIDATES
,
java
.
awt
.
event
.
KeyEvent
.
KEY_LOCATION_STANDARD
));
keysym2JavaKeycodeHash
.
put
(
Long
.
valueOf
(
XKeySymConstants
.
XK_Kanji_Bangou
),
new
Keysym2JavaKeycode
(
java
.
awt
.
event
.
KeyEvent
.
VK_CODE_INPUT
,
java
.
awt
.
event
.
KeyEvent
.
KEY_LOCATION_STANDARD
));
keysym2JavaKeycodeHash
.
put
(
Long
.
valueOf
(
XKeySymConstants
.
XK_Mae_Koho
),
new
Keysym2JavaKeycode
(
java
.
awt
.
event
.
KeyEvent
.
VK_PREVIOUS_CANDIDATE
,
java
.
awt
.
event
.
KeyEvent
.
KEY_LOCATION_STANDARD
));
/* VK_KANA_LOCK is handled separately because it generates the
* same keysym as ALT_GRAPH in spite of its different behavior.
*/
...
...
src/solaris/native/sun/xawt/XWindow.c
浏览文件 @
952a919f
...
...
@@ -175,6 +175,7 @@ KeymapEntry keymapTable[] =
{
java_awt_event_KeyEvent_VK_META
,
XK_Meta_L
,
FALSE
,
java_awt_event_KeyEvent_KEY_LOCATION_LEFT
},
{
java_awt_event_KeyEvent_VK_META
,
XK_Meta_R
,
FALSE
,
java_awt_event_KeyEvent_KEY_LOCATION_RIGHT
},
{
java_awt_event_KeyEvent_VK_CAPS_LOCK
,
XK_Caps_Lock
,
FALSE
,
java_awt_event_KeyEvent_KEY_LOCATION_STANDARD
},
{
java_awt_event_KeyEvent_VK_CAPS_LOCK
,
XK_Shift_Lock
,
FALSE
,
java_awt_event_KeyEvent_KEY_LOCATION_STANDARD
},
/* Misc Functions */
{
java_awt_event_KeyEvent_VK_PRINTSCREEN
,
XK_Print
,
FALSE
,
java_awt_event_KeyEvent_KEY_LOCATION_STANDARD
},
...
...
@@ -350,6 +351,24 @@ KeymapEntry keymapTable[] =
* same keysym as ALT_GRAPH in spite of its different behavior.
*/
{
java_awt_event_KeyEvent_VK_ALL_CANDIDATES
,
XK_Zen_Koho
,
FALSE
,
java_awt_event_KeyEvent_KEY_LOCATION_STANDARD
},
{
java_awt_event_KeyEvent_VK_ALPHANUMERIC
,
XK_Eisu_Shift
,
FALSE
,
java_awt_event_KeyEvent_KEY_LOCATION_STANDARD
},
{
java_awt_event_KeyEvent_VK_ALPHANUMERIC
,
XK_Eisu_toggle
,
FALSE
,
java_awt_event_KeyEvent_KEY_LOCATION_STANDARD
},
{
java_awt_event_KeyEvent_VK_CODE_INPUT
,
XK_Kanji_Bangou
,
FALSE
,
java_awt_event_KeyEvent_KEY_LOCATION_STANDARD
},
{
java_awt_event_KeyEvent_VK_FULL_WIDTH
,
XK_Zenkaku
,
FALSE
,
java_awt_event_KeyEvent_KEY_LOCATION_STANDARD
},
{
java_awt_event_KeyEvent_VK_HALF_WIDTH
,
XK_Hankaku
,
FALSE
,
java_awt_event_KeyEvent_KEY_LOCATION_STANDARD
},
{
java_awt_event_KeyEvent_VK_HIRAGANA
,
XK_Hiragana
,
FALSE
,
java_awt_event_KeyEvent_KEY_LOCATION_STANDARD
},
{
java_awt_event_KeyEvent_VK_JAPANESE_HIRAGANA
,
XK_Hiragana
,
FALSE
,
java_awt_event_KeyEvent_KEY_LOCATION_STANDARD
},
{
java_awt_event_KeyEvent_VK_KATAKANA
,
XK_Katakana
,
FALSE
,
java_awt_event_KeyEvent_KEY_LOCATION_STANDARD
},
{
java_awt_event_KeyEvent_VK_JAPANESE_KATAKANA
,
XK_Katakana
,
FALSE
,
java_awt_event_KeyEvent_KEY_LOCATION_STANDARD
},
{
java_awt_event_KeyEvent_VK_JAPANESE_ROMAN
,
XK_Romaji
,
FALSE
,
java_awt_event_KeyEvent_KEY_LOCATION_STANDARD
},
{
java_awt_event_KeyEvent_VK_KANA
,
XK_Kana_Shift
,
FALSE
,
java_awt_event_KeyEvent_KEY_LOCATION_STANDARD
},
{
java_awt_event_KeyEvent_VK_KANA_LOCK
,
XK_Kana_Lock
,
FALSE
,
java_awt_event_KeyEvent_KEY_LOCATION_STANDARD
},
{
java_awt_event_KeyEvent_VK_KANJI
,
XK_Kanji
,
FALSE
,
java_awt_event_KeyEvent_KEY_LOCATION_STANDARD
},
{
java_awt_event_KeyEvent_VK_NONCONVERT
,
XK_Muhenkan
,
FALSE
,
java_awt_event_KeyEvent_KEY_LOCATION_STANDARD
},
{
java_awt_event_KeyEvent_VK_PREVIOUS_CANDIDATE
,
XK_Mae_Koho
,
FALSE
,
java_awt_event_KeyEvent_KEY_LOCATION_STANDARD
},
{
java_awt_event_KeyEvent_VK_ROMAN_CHARACTERS
,
XK_Romaji
,
FALSE
,
java_awt_event_KeyEvent_KEY_LOCATION_STANDARD
},
{
java_awt_event_KeyEvent_VK_COMPOSE
,
XK_Multi_key
,
FALSE
,
java_awt_event_KeyEvent_KEY_LOCATION_STANDARD
},
{
java_awt_event_KeyEvent_VK_ALT_GRAPH
,
XK_Mode_switch
,
FALSE
,
java_awt_event_KeyEvent_KEY_LOCATION_STANDARD
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录