开发者

What is (are) the standard key(s) for a gui widget's action?

开发者 https://www.devze.com 2023-01-30 10:26 出处:网络
I know on Widows, this key is space, for example, space will per开发者_如何学Pythonform the button\'s click which is its action,same for radio buttons etc. Is this the standard. If not, what is?

I know on Widows, this key is space, for example, space will per开发者_如何学Pythonform the button's click which is its action,same for radio buttons etc. Is this the standard. If not, what is?

Thanks


Yes, on a MS Window system these keys are handled by windows OS for navigation.

TAB move input focus to the next control.
TAB + SHIFT move input focus to the previous control.
ENTER Activate a button/menu.
SPACE check/uncheck a checkbox.
ALT activate the first menu group. Use arrows to navigate in menu.

UP/DOWN in a group, change radio button
ALT + DOWN In a combobox, open drop down list

There are probably more, but these are the on I came up with right now...

Was it this you had in mind?

0

精彩评论

暂无评论...
验证码 换一张
取 消