Open benj5378 opened 1 year ago
Confirmed by @qewer33
I guess we need to handle these key events at button or checkbox level otherwise they are passed upwards...
@yorikvanhavre any ideas why this only seems to affect Draft Workbench?
I have no idea.. Thought maybe some of the Draft widgets might be swallowing key events, but it's not the case. I'll investigate more...
This also falls in to the 'accessibility' category
@Roy-043 when you get a chance, would you mind weighing-in?
In my tests on Windows and Linux toggles and buttons on Draft task panels can be accessed via the keyboard.
I have used Draft_Line and Draft_ShapeString in my tests.
Space
works for toggles.
Enter
or Space
works for buttons (Draft_ShapeString) or only Space
(Draft_Line).
Steps:
Shift+Tab
twice. The Cancel button has the focus now.Enter
or Space
.OS: Windows 8 build 9600
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.34387 (Git)
Build type: Release
Branch: master
Hash: d95b26dfb5dd23eaee004b4af3cf5cf4766e7f9c
Python 3.10.12, Qt 5.15.8, Coin 4.0.0, Vtk 9.2.5, OCC 7.6.3
Locale: Dutch/Netherlands (nl_NL)
Installed mods:
OS: Ubuntu 22.04.3 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.33719 (Git)
Build type: Release
Branch: master
Hash: 2a88c7c7dfed699d2a4944bda13bf8626ed39315
Python 3.10.12, Qt 5.15.8, Coin 4.0.0, Vtk 9.2.5, OCC 7.6.3
Locale: Dutch/Netherlands (nl_NL)
Is there an existing issue for this?
Problem description
Using
enter
key while having selected a button (withtab
key) should be equivalent to clicking the button. Usingspace
key while having selected a checkbox (withtab
key) should be equivalent to clicking the checkbox.But neither
enter
orspace
keys work on buttons or checkboxes inside the task panel. Instead using space hides the object selected in the hierarchy (even though it hierachy isn't selected)?So far, this seems only seems to affect task panels in Draft
Full version info
Subproject(s) affected?
Draft
Anything else?
No response
Code of Conduct