Java工具界面设计规范(三)

1          键盘操作

本节提出键盘操作相关的规范,包括快捷键、助记键和其它形式的导航、选择以及激活,通过这些操作,可以用键盘取代鼠标,实现相应功能。

1.1      关于键盘的说明

功能键:F1F12                             

取消键:ESCEscEscape

制表符(Tab键):Tab

修改键:CtrlShiftAlt

空格键:Spacebar

回车/换行键:ReturnEnter

方向键:

其它键:DeleteBackspaceHomeEndPgUp(Page Up)PgDn(Page Down)

组合键:用+表示,如“Ctrl+A”表示CtrlA两个键被同时按下,“Ctrl+Shift+F6表示CtrlShiftF6三个键被同时按下。

1.2      键盘导航与激活

键盘导航使用户可以通过键盘操作从一个组件转移到另一个组件,而键盘激活使用户可以通过键盘操作激发一个事件。

1)        第一次打开窗口时,为要最先使用的组件指定键盘焦点,一般为放置在窗口左上角的组件。如果不为活动窗口指定键盘焦点,键盘导航和控制机制将不可用。指定初始键盘焦点,对那些只使用键盘的用户尤为重要。

2)        确保所有功能可以通过键盘操作达到。

一般来说,在组件之间移动焦点用以下功能键:

  • Tab 移动焦点到下一组件。
  • Ctrl+Tab 当当前组件接受Tab输入时(如文本字段、文本域),移动焦点到下一组件。
  • Shift+Tab 移动焦点到前一个组件(与Tab方向相反)。
  • Ctrl+Shift+Tab 当当前组件接受Tab输入时(如文本字段、文本域),移动焦点到前一组件(与Ctrl+Tab相反)。
  • Arrow keys 方向键,在一个组件内部各子元素之间移动,如菜单中的子菜单、组合框中的下拉列表、文本字段中的字符之间。

下表给出了常用键盘导航和激活操作的对应键。

1  常用导航和激活键

键盘操作

动作

Action

Tab1

焦点转移到下一组件

Navigates to the next focusable component

Ctrl+Tab1

焦点转移下一组件(对接收Tab的组件)

Navigates to the next focusable component (works even if the component that previously had focus accepts tabs)

焦点左移一字符或组件

Moves focus left one character or component

焦点右移一字符或组件

Moves focus right one character or component

焦点上移一行或组件

Moves focus up one line or component

焦点下移一行或组件

Moves focus down one line or component

PgUp

焦点上移一窗格

Moves up one pane of information

PgDn

焦点下移一窗格

Moves down one pane of information

Home

焦点移至开始

Moves to the beginning of the data; in a table, moves to the beginning of a row

End

焦点移至结尾

Moves to the end of the data; in a table, moves to the last cell in a row

Enter/Return

激活默认按钮

Activates the default command button

Escape

释放菜单或对话框

Dismisses a menu or dialog box without changes; cancels a drag-and-drop operation in progress

Spacebar

激活获得焦点的组件

Activates the component that has keyboard focus

 

1 加上Shift键,方向相反

1.3      常用键盘快捷键(Common Keyboard Shortcuts

31给出了一个典型的编辑菜单的快捷键和助记键的例子。

31  编辑菜单中的快捷键和助记

1)        为经常使用的菜单项指定快捷键,作为鼠标操作的补充,没有必要为每一个命令提供快捷键。

2)        用标准的缩写显示快捷键,用连字符(-)分开。

下表给出了常用的快捷键列表,以字母顺序排序。

2  常用快捷键对应表

快捷键

代表意思

Equivalent

Ctrl+A

选择全部(编辑菜单)

Select All (Edit menu)

Ctrl+B

粗体(格式菜单)

Bold (Format menu)

Ctrl+C

复制(编辑菜单)

Copy (Edit menu)

Ctrl+E

居中(格式菜单)

Align Center (Format menu)

Ctrl+F

查找(编辑菜单)

Find (Edit menu)

Ctrl+G

查找下一个(编辑菜单)

Find Again (Edit menu)

Ctrl+H

替换(编辑菜单)

Replace (Edit menu)

Ctrl+I

斜体(格式菜单)

Italic (Format menu)

Ctrl+L

左对齐(格式菜单)

Align Left (Format menu)

Ctrl+N

新建(文件菜单)

New (File menu)

Ctrl+O

打开(文件菜单)

Open (File menu)

Ctrl+P

打印(文件菜单)

Print (File menu)

Ctrl+R

右对齐(格式菜单)

Align Right (Format menu)

Ctrl+S

保存(文件菜单)

Save (File menu)

Ctrl+U

下划线(格式菜单)

Underline (Format menu)

Ctrl+V

粘贴(编辑菜单)

Paste (Edit menu)

Ctrl+W

关闭(文件菜单)

Close (File menu)

Ctrl+X

剪切(编辑菜单)

Cut (Edit menu)

Ctrl+Y

重做(编辑菜单)

Redo (Edit menu)

Ctrl+Z

撤消(编辑菜单)

Undo (Edit menu)

Delete

删除(编辑菜单)

Delete (Edit menu)

F1

帮助

Help

F5

刷新

Refresh

Shift+F1

上下文帮助

Contextual help

1.4      常用助记键(Common Mnemonics

1.4.1 常用助记键规则

在程序开发过程中,遵循以下规则:

1)        在应用中,为所有菜单标题、菜单项和对话框组件提供助记键。常用助记键已在表3中给出。

2)        在对话框中,不要为默认按钮和取消按钮指定助记键,分别用回车键和Esc键取代。

3)        避免上下文助记键冲突,如在文件菜单下,不可以同时用“P”作为“Print”和“Page Setup”的助记键。

4)        对表3中未列出的助记键,用菜单或文字的第一个字母作为助记键(如Justify中的J)。

5)        如果第一个字母上下文冲突,选择接下来的第一个辅音字母作为助记键;如果还冲突,选择第一个元音字母作为助记键。

6)        让用户能够通过Tab键导航到自身没有文字和标签的组件上,比如文本字段。

7)        setMnemonic方法可以用来为命令按钮、复选框、单选按钮、切换按钮和菜单标题指定助记键,对于文本字段、列表框、组合框这些自身没有文字的组件,助记键可以通过与之关联的标签来指定,用标签的setDisplayedMnemonic方法和菜单的setMnemonic方法,而标签的labelFor属性用来关联标签(及其助记键)和相应组件。

下面给出常用的助记键。

3  常见助记键对应表

字母

对应功能

Menu Items

A

全选(编辑),保存为(文件),关于(帮助)

Select All (Edit menu), Save As (File menu), About Application (Help menu)

B

粗体(格式)

Bold (Format menu)

C

复制(编辑),关闭(文件),居中(格式),上下文(帮助)

Copy (Edit menu), Close (File menu), Align Center (Format menu), Contents (Help menu)

D

删除(编辑),详细(视图)

Delete (Edit menu), Details (View menu)

E

编辑

Edit menu

F

文件,查找(编辑)

File menu, Find (Edit menu), Filter (View menu)

G

大图标(视图)

Large Icons (View menu)

H

帮助

Help menu

I

索引(帮助),斜体(格式)

Index (Help menu), Italic (Format menu)

L

居左(格式),列表(视图)

Align Left (Format menu), List (View menu)

M

小图标(视图)

Small Icons (View menu)

N

查找(编辑),新建(文件)

Find Again (Edit menu), New (File menu)

O

打开(文件),放大(视图)

Open (File menu), Zoom Out (View menu)

P

粘贴(编辑),打印(文件)

Paste (Edit menu), Print (File menu)

R

格式,重做(编辑),居右(格式),刷新(视图)

Format menu, Redo (Edit menu), Align Right (Format menu), Refresh (View menu)

S

保存(文件),搜索(帮助),排序(视图)

Save (File menu), Search (Help menu), Sort By (View menu)

T

剪切(编辑),指南(帮助)

Cut (Edit menu), Tutorial (Help menu)

U

撤消(编辑),页面设置(文件),下划线(格式)

Undo (Edit menu), Page Setup (File menu), Underline (Format menu)

V

视图

View menu

X

退出(文件)

Exit (File menu)

Z

缩小(视图)

Zoom In (View menu)

1.4.2   KingbaseES工具关于助记键的规定

1)       所有菜单添加助记键,添加参照“常用助记键规则”

2)        所有对话框或窗口中,可响应动作的控件,基本上都需要带有助记键(比如有标签和文本框等相关联,则标签需要带有助记键,checkbox也需要带有助记键)

3)        在同一个界面中,助记键不能重复

1.4.3   关于助记键和国际化资源文件

助记键的添加要保证与资源文件同步,每个工具中都有自己的资源文件,这些文件和国际化相关,界面添加内容时,请注意助记键和资源文件要保持一致。参考示例如下:

在“文件”菜单下的“打开”子菜单,工具的资源文件中“menu.file”组下有一个条目:menu.file.open,其对应的中文为“打开(O)”,英文为“Open”,现在我们要给该菜单指定助记键,则需要在资源文件的同一个组(menu.file)下新建一个条目: menu.file.open.mnemonic,其中英文都应该为“O”,同样,要给该菜单添加工具提示(tooltip),则在“menu.file”组下新建条目:menu.file.open.tooltip,分别指定中英文。

 

资源文件中条目                  中文:English                     所属组

menu.file.open                            打开(O):Open                      menu.file

menu.file.open.mnemonic      O:O                                    menu.file

menu.file.open.tooltip            打开一个文件:Open file menu.file

 

注意:

1.         相关内容必须同属于同一组:menu.file

2.         相关条目的前缀相同:menu.file.open

3.         助记键中指定的字母(O)必须在界面上可见“打开(O)”。

 

1.5      常用窗体及组件键盘支持

接下来,分别介绍界面编程中各种窗体及组件的键盘支持,在KingBaseES工具中,我们尽可能提供这些功能,方便用户的键盘操作。

1.5.1   后台窗口和内部窗口(Backing Windows and Internal Windows

4  后台和内部窗口的键盘操作

键盘操作

动作

Action

Ctrl+F4

关闭具有焦点的内部窗口

Closes internal window that has keyboard focus

Ctrl+F7

移动内部窗口(切换到内部窗口模式,用箭头键来移动窗口)

Moves internal window (that is, switches to internal window mode, in which users press arrow keys to move windows around)

Ctrl+F8

设置内部窗口大小(切换到内部窗口模式,用箭头键设置大小)

Resizes internal window (that is, switches to internal window mode, in which users then press arrow keys to resize window)

Ctrl+F9

最小化内部窗口

Minimizes internal window

Ctrl+Esc, Ctrl+Tab, Shift+Esc, Shift+Tab

先在打开的内部窗口间导航,再导航到最小化的内部窗口

Navigates first between open internal windows, then among minimized internal windows (Click here for a description of the directions associated with these keyboard operations. The Control and Shift keys work the same way with the Escape key here as they do with the Tab key in the explanation.)

Ctrl+F5, Enter, Return

打开有键盘焦点的最小化内部窗口

Opens minimized internal window that has keyboard focus

Ctrl+F6, Ctrl+Shift+F6

在后台窗口的关联内部窗口之间导航,在内部窗口和关联的辅助窗口之间导航。

Navigates among associated internal windows on the backing window and between an internal window and an associated secondary window (Click here for a description of the directions associated with these keyboard operations. The Control and Shift keys work the same way with the Escape key here as they do with the Tab key in the explanation.)

Ctrl+spacebar

展开多文档窗口中的上下文菜单

Displays contextual menu in MDI

1.5.2   菜单(Menus

下表提供的关于菜单的键盘操作包括:菜单栏、下拉菜单、子菜单、上下文菜单、菜单项、单选按钮菜单项以及组合框菜单项。

5  菜单的键盘操作 

键盘操作

动作

Action

F10

焦点移至菜单栏第一个菜单

Moves focus to menu bar and posts first menu

Shift+F10

展开上下文菜单

Displays contextual menu

在菜单栏左右导航,如果有子菜单,右箭头展开子菜单,左箭头收缩展开的子菜单

Navigates right or left among titles in menu bar, posting current menu, displaying submenus (right arrow), and navigating back from submenu to higher-level menu

在菜单项中导航

Navigates within menus, displaying submenus

菜单项中导航

Navigates within menus, moving to the next item without displaying a submenu

Enter, Return, spacebar

激活菜单项

Activates menu item, dismisses menu, and goes to last window item that had focus

Escape

离开菜单

Dismisses menu without taking action and returns focus to last component that had focus; when in submenu, dismisses submenu and returns to higher-level drop-down or contextual menu

1.5.3   辅助、实用窗口(Secondary Windows and Utility Windows

6  辅助窗口和实用窗口键盘操作

键盘操作

动作

Action

Alt+F6

进入辅助窗口,如果在辅助窗口内,返回到其上一级窗口

Navigates into secondary window; when in secondary window, navigates to the associated higher-level window

Escape

激活取消按钮

Activates Cancel button (no need for keyboard focus)

Enter, Return

激活默认命令按钮

Activates default command button (no need for keyboard focus)

1.5.4   制表符窗格(Tabbed Panes

7  制表符窗格的键盘操作

键盘操作

动作

Action

方向键

在窗格间导航

Navigates through tabs

Ctrl+

转移到相应的内容面板

Moves from tab to its associated content pane

Ctrl+

从内容面板转到相应窗格

Moves from content pane to its associated tab

Ctrl+PgDn

转移到下一内容面板(改变相应窗格)

Moves to next content pane (changing the corresponding tab)

Ctrl+PgUp

转移到前一内容面板(改变相应窗格)

Moves to previous content pane (changing the corresponding tab)

1.5.5   表(Tables

8  表的键盘操作

键盘操作

动作

Action

Enter Return

取消当前选择,焦点下移一格

Deselects current selection and moves focus down one cell

Shift+Enter  Shift+Return

取消当前选择,焦点上移一格

Deselects current selection and moves focus up one cell

Tab

取消当前选择,焦点右移一格

Deselects current selection and moves focus right one cell

Shift+Tab

取消当前选择,焦点左移一格

Deselects current selection and moves focus left one cell

取消当前选择,焦点下移一格

Deselects current selection and moves focus down one cell

取消当前选择,焦点上移一格

Deselects current selection and moves focus up one cell

PgDn

取消当前选择,下滚一窗格,焦点移至当前列可见的最后一格

Deselects current selection, scrolls down one information pane, and selects the last visible cell in the current column

PgUp

取消当前选择,上滚一窗格,焦点移至当前列可见的第一格

Deselects current selection, scrolls up one information pane, and gives focus to first visible cell in the current column

Ctrl+PgUp

取消当前选择,左滚一窗格,焦点移至当前行可见的第一格

Deselects current selection, scrolls left one information pane, and gives focus to first visible cell in the current row

Ctrl+PgDn

取消当前选择,右滚一窗格,焦点移至当前行可见的最后一格

Deselects current selection, scrolls right one information pane, and selects the last visible cell in the current row

Home

焦点转移到当前行的第一格

Moves focus and information pane to first cell in the current row

End

焦点移至当前行的最后一格

Moves focus and information pane to last cell in the current row

Ctrl+Home

焦点移至当前列的第一格

Moves focus and information pane to first cell in the current column

Ctrl+End

焦点移至当前列的最后一格

Moves focus and information pane to last cell in the current column

F2

使当前单元可编辑

Enables editing in a cell

Escape

重置单元格到编辑前状态

Resets cell to the state it was in before it was edited

Ctrl+A

选择整个表

Selects entire table

Shift+

向下增加选择一行

Extends selection down one row

Shift+

向上增加选择一行

Extends selection up one row

Shift+

向左增加选择一列

Extends selection left one column

Shift+

向右增加选择一列

Extends selection right one column

Shift+Home

增加选择到开头行

Extends selection to beginning of row

Shift+End

增加选择到结尾行

Extends selection to end of row

Ctrl+

上移一行而不影响已选内容

Navigates up one row without affecting the selection

Ctrl+

下移一行而不影响已选内容

Navigates down one row without affecting the selection

Ctrl+Shift+

上移一行并选择这行,不影响已选内容

Navigate up one row and select the new item without deselecting any current selections

Ctrl+Shift+

下移一行并选择这行,不影响已选内容

Navigate down one row and select the new item without deselecting any current selections

Ctrl+Shift+Home

增加选择到开始列

Extends selection to beginning of column

Ctrl+Shift+End

增加选择到结尾列

Extends selection to end of column

Shift+PgDn

向下增加选择一窗格

Extends selection down one information pane

Shift+PgUp

向上增加选择一窗格

Extends selection up one information pane

Ctrl+Shift+PgDn

向右增加选择一窗格

Extends selection right one information pane

Ctrl+Shift+PgUp

向左增加选择一窗格

Extends selection left one information pane

1.5.6   树(Tree Components

9  树组件的键盘操作

键盘操作

动作

Action

展开节点

Expands current node

收缩节点

Collapses current node

上移一节点

Moves selection up one node

下移一节点

Moves selection down one node

Home

移到第一个节点

Moves selection to first node in tree

End

移到最后节点

Moves selection to last node in tree

PgUp

上移一窗格

Scrolls up one information pane

PgDn

下移一窗格

Scrolls down one information pane

Ctrl+PgUp

左移一窗格(如果不能水平看到所有节点)

Moves left one information pane, if not everything is visible in a horizontal orientation

Ctrl+PgDn

 

右移一窗格

Moves right one information pane, if not everything is visible in a horizontal orientation

Ctrl+A, Ctrl+/

选择树中所有节点

Selects all nodes in tree

Ctrl+/

取消树中所有节点选择

Deselects all

Shift+

向上增加选择

Extends selection up

Shift+

向下增加选择

Extends selection down

Shift+Home

增加选择到开头

Extends selection to beginning of tree

Shift+End

增加选择到结尾

Extends selection to end of tree

Shift+PgUp

向上增加选择一窗格

Extends selection up one information pane

Shift+PgDn

向下增加选择一窗格

Extends selection down one information pane

Ctrl+Shift+PgDn

向右增加选择一窗格

Extends selection right one information pane

Ctrl+Shift+PgUp

向左增加选择一窗格

Extends selection left one information pane

1.5.7   文本域(Text Areas, Default Editor Kit, and Styled Text Editor Kit

10  文本域的键盘操作 

键盘操作

动作

Action

插入点上移一行

Moves insertion point up one line

插入点下移一行

Moves insertion point down one line

插入点左移一字符

Moves insertion point to the left one component or character

插入点右移一字符

Moves insertion point to the right one component or character

PgUp

上移一窗格

Moves up one information pane

PgDn

下移一窗格

Moves down one information pane

Ctrl+PgUp

左移一窗格

Moves left one information pane

Ctrl+PgDn

右移一窗格

Moves right one information pane

Home

移到行开始

Moves to beginning of line

End

移到行末尾

Moves to end of row or line

Ctrl+Home

移到数据的开始

Moves to beginning of data

Ctrl+End

移到数据的结尾

Moves to end of data

Ctrl+

移到前一个词的开始

Moves to beginning of previous word

Ctrl+

移到下一个词的开始

Moves to beginning of next word

Ctrl+A, Ctrl+/

全部选择

Selects all

Ctrl+/

全不选

Deselects all

Shift+

向上增加选择一行

Extends selection up one line

Shift+

向下增加选择一行

Extends selection down one line

Shift+

向左增加选择一字符

Extends selection left one character

Shift+

向右增加选择一字符

Extends selection right one character

Shift+PgUp

向上增加选择一窗格

Extends selection up one information pane

Shift+PgDn

向下增加选择一窗格

Extends selection down one information pane

Ctrl+Shift+PgUp

向左增加选择一窗格

Extends selection to the left one information pane

Ctrl+Shift+PgDn

向右增加选择一窗格

Extends selection to the right one information pane

Shift+Home

增加选择到行开头

Extends selection to beginning of line

Shift+End

增加选择到行结尾

Extends selection to end of line

Ctrl+Shift+Home

增加选择到数据开头

Extends selection to beginning of data

Ctrl+Shift+End

增加选择到数据结尾

Extends selection to end of data

Ctrl+Shift+

增加选择到下一词

Extends selection to next word

Ctrl+Shift+

增加选择到前一词

Extends selection to previous word

1.5.8   文本字段(Text Fields

11  文本字段的键盘操作 

键盘操作

动作

Action

插入点右移一字符

Moves insertion point one character to the right

插入点左移一字符

Moves insertion point one character to the left

Ctrl+

插入点移到下一个词开始

Moves insertion point to beginning of next word

Ctrl+

插入点移到当前词的开始,如果已在这个词的开始,移到前一词的开始

Moves insertion point to beginning of current word, or, if insertion point is already at the beginning of the current word, moves it to the beginning of the previous word

Home

插入点移到文本字段开头

Moves insertion point to beginning of text field

End

插入点移到文本字段末尾

Moves insertion point to end of text field

Shift+Home

选择增加到行开头

Extends selection to beginning of line

Shift+End

选择增加到行末尾

Extends selection to end of line

Shift+

选择向左增加一字符

Extends selection one character to the left

Shift+

选择向右增加一字符

Extends selection one character to the right

Ctrl+Shift+

选择增加到前一词

Extends selection to previous word

Ctrl+Shift+

选择增加到下一词

Extends selection to next word

Ctrl+A

选择文本字段中所有字符

Selects all characters in the text field

1.5.9   复选框 (Checkboxes

12  复选框的键盘操作

键盘操作

动作

Action

Spacebar

改变复选框的选中状态

Switches the setting of the checkbox

1.5.10            组合框(Combo Boxes

13  组合框的键盘操作

键盘操作

动作

Action

Spacebar, , Alt+

展开关联列表

Posts associated list

,

当列表已展开,在列表内上下移动选择条目

When menu is posted, moves highlight up or down within list, selecting highlighted item

Enter/Return, spacebar

关闭列表

Closes list, maintaining latest selection

Escape

关闭列表,返回先前的选择

Closes list, returning to prior selection

1.5.11            命令按钮(Command Buttons

14  对命令按钮的键盘操作

键盘操作

代表操作

Action

Spacebar

激活获得焦点的命令按钮

Activates command button that has keyboard focus

Enter, Return

激活默认按钮(不需要键盘焦点)

Activates default button (does not require keyboard focus)

Escape

激活取消按钮(不需要键盘焦点)

Activates Cancel button (does not require keyboard focus)

1.5.12            列表框(List Boxes and Selectable Lists

15  列表框的键盘操作

键盘操作

动作

Action

焦点向上移动一行并选定数据项

Moves focus up one row or line and selects the item

焦点向下移动一行并选定数据项

Moves focus down one row or line and selects the item

PgUp

焦点向上移动一窗格

Moves focus up one information pane minus one line, selecting the first line in the information pane

PgDn

焦点向下移动一窗格

Moves focus down one information pane minus one line, selecting the last line in the information pane

Home, Ctrl+Home

焦点移至列表开头

Moves focus to beginning of list

End, Ctrl+End

焦点移至列表末尾

Moves focus to end of list

Ctrl+A, Ctrl+/

选择所有数据项

Selects all items in list

Ctrl+/

取消选择所有项

Deselects all items in list

Spacebar

选择该项,取消所有先前的选择

Makes a selection and deselects any previous selection

Ctrl+spacebar

对当前条目选择切换,不影响以前的选择

Switches selection without affecting previous selections

Shift+spacebar

增加选择

Extends selection

Shift+

向下增加选择一个条目

Extends selection down one item

Shift+

向上增加选择一个条目

Extends selection up one item

Shift+Home

增加选择到列表开头

Extends selection to beginning of list

Shift+End

增加选择到列表结尾

Extends selection to end of list

Shift+PgUp

向上增加选择一窗格

Extends selection up one information pane

Shift+PgDn

向下增加选择一窗格

Extends selection down one information pane

1.5.13            单选按钮(Radio Buttons

16  单选按钮的键盘操作

键盘操作

动作

Action

Spacebar(空格键)

选中该单选按钮

Turns on radio button

1.5.14            滚动条(Scrollbars

17  滚动条的键盘操作

键盘操作

动作

Action

上滚一行

Moves information pane up one line

下滚一行

Moves information pane down one line

PgUp

上滚一窗格

Moves up one information pane minus one line

PgDn

下滚一窗格

Moves down one information pane minus one line

Ctrl+Home

移动到开始

Moves to beginning of data

Ctrl+End

移动到结尾

Moves to end of data

Ctrl+PgDn

右移一窗格

Moves right one information pane minus one column

Ctrl+Pg Up

左移一窗格

Moves left one information pane minus one line or column

1.5.15            滑尺(Sliders

18 滑尺的键盘操作

键盘操作

动作

Action

方向键

改变滑尺的值

Changes value of slider

Home

 

Moves to leading-edge value (in left-to-right reading order, the value at the left edge or bottom)

End

 

Moves to the trailing-edge value (in left-to-right reading order, the value at the right edge or top of the slider)

PgUp, Ctrl+PgUp

 

Jumps towards right or top (approximately 20% of the scale)

PgDn, Ctrl+PgDn

 

Jumps towards left or bottom direction (approximately 20% of the scale)

1.5.16            分割窗格(Split Panes

19  分割窗格的键盘操作 

键盘操作

动作

Action

Tab, F6

在分割窗格间切换

Navigates between split panes and gives focus to last element that had focus

F8

焦点移至分割栏

Gives focus to splitter bar

方向键, Home, End

在分割面板上改变分割栏的位置

Changes location of splitter bar in splitter pane

1.5.17            切换按钮(Toggle Buttons

20  切换按钮的键盘操作

键盘操作

动作

Action

Spacebar(空格键)

设置按钮开关

Switches button on or off

1.5.18            工具提示(Tool Tips

21 工具提示键盘操作

键盘操作

动作

Action

Ctrl+F1

显示/关闭工具提示

Displays or dismisses tool tip

Escape(取消键)

关闭工具提示

Dismisses tool tip

1.5.19            工具栏(Toolbars

22  工具栏键盘操作

键盘操作

动作

Action

Arrow keys(方向键)

工具条导航

Navigates within toolbar

Spacebar(空格键)

激活工具条按钮

Activates toolbar button

1.6      常见键盘操作使用说明

       Tab(键):一般通过Tab键,可以在界面上的各个组件之间转移焦点,方向一般是按顺序从左到右、从上到下。如果想反向转移,即从当前焦点转移到前一焦点,通过按下Shift+Tab组合键实现。

       Enter(回车、换行键):激活默认按钮。一般每个界面都有设有一个默认按钮,当Enter键按下时,激发默认按钮相应功能。

       SpaceBar(空格键):激活获得焦点的组件的相应功能,相当于用鼠标单击相应组件。如要激活一个按钮的相应功能,先转移焦点到该按钮,按下空格键即可。

       AltAlt与助记键相结合,使相应组件获得焦点并激发响应事件,相当于鼠标单击该组件。通过Alt和助记键,可以快速转移焦点到相应组件。

       Esc:退出当前窗口,相当于菜单栏中的退出菜单或界面上的撤消按钮。

       Ctrl:对于可以接受输入的组件(如文本框),由于本身接受TabEnter和空格键的输入,需要Ctrl与其它键一起来控制焦点转移,如:Ctrl+Tab,转移到下一焦点;Ctrl+Shift+Tab,转移到上一焦点。

       方向键:组件内导航,如在树控件中,通过右箭头展开子节点,左箭头回收节点,上下箭头在展开的节点间转移;下拉列表中,下箭头展开下拉列表,上下箭头在子条目中转移,而Enter或空格键选中相应条目。

       翻页键(PageUpPageDown):在制表符窗格(Tab窗格)中,通过Ctrl与翻页键组合,在各个子窗体之间转移。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值