C#.NET:如何将阿拉伯语或其他语言的字符设置为文本框控件的访问键?
C#.NET : How to set arabic or other languages' characters as access keys for a textbox control?
之前我的软件都是英文的,现在正在转换为多国语言,所以所有的访问键都死了,而计算机语言设置为非英语,我想用我的阿拉伯语快捷键 ALT + F?我该怎么做?
提前致谢。
访问密钥可以与控制文本分开分配。
<asp:TextBox id="TextBox"
AccessKey="A"
Text="arabic label"
runat="server"
/>
这可能不是官方的 "best practice",但从技术上讲它是可行的。
来自微软指南:
Keyboard layouts change according to culture/locale. Some characters
do not exist in all keyboard layouts. When assigning shortcut-key
combinations, make sure that you can reproduce them using
international keyboards, especially if you plan to use the
shortcut-key combinations with the Windows 2000 MUI (Multilanguage
User Interface).
Because each culture/locale may use a different keyboard, consider
using numbers and function keys (F4, F5, and so on) instead of letters
in shortcut-key combinations.
Although you do not need to localize number and function-key
combinations, they are not as intuitive for the user as letter
combinations. Some shortcut keys may not work for each keyboard layout
in a particular culture/locale. For example, some cultures/locales use
more than one keyboard, such as Eastern Europe and most
Arabic-speaking countries/regions.
之前我的软件都是英文的,现在正在转换为多国语言,所以所有的访问键都死了,而计算机语言设置为非英语,我想用我的阿拉伯语快捷键 ALT + F?我该怎么做?
提前致谢。
访问密钥可以与控制文本分开分配。
<asp:TextBox id="TextBox"
AccessKey="A"
Text="arabic label"
runat="server"
/>
这可能不是官方的 "best practice",但从技术上讲它是可行的。
来自微软指南:
Keyboard layouts change according to culture/locale. Some characters do not exist in all keyboard layouts. When assigning shortcut-key combinations, make sure that you can reproduce them using international keyboards, especially if you plan to use the shortcut-key combinations with the Windows 2000 MUI (Multilanguage User Interface).
Because each culture/locale may use a different keyboard, consider using numbers and function keys (F4, F5, and so on) instead of letters in shortcut-key combinations.
Although you do not need to localize number and function-key combinations, they are not as intuitive for the user as letter combinations. Some shortcut keys may not work for each keyboard layout in a particular culture/locale. For example, some cultures/locales use more than one keyboard, such as Eastern Europe and most Arabic-speaking countries/regions.