View Issue Details

IDProjectCategoryView StatusLast Update
0002810DraftBugpublic2017-04-16 20:45
ReporterruchgAssigned Toyorik 
Status closedResolutionfixed 
Product Version0.16 
Target VersionFixed in Version 
Summary0002810: Keyboard shortcut in Draft
DescriptionWorking thru the manual:

The manual states:
"Note that most of the Draft commands can be fully performed from the keyboard, without touching the mouse, using their two-letter shortcut. Our first 2x2m rectangle can be done like this: re 0 Enter 0 Enter 0 Enter 2m Enter 2m Enter 0 Enter."

I'm not able to get the rectangle formed using the shortcut. I have both Report and Python consoles open and I notice that the numbers are changing the isometric view.

When I type re the task tab opens up with the Rectangle data entry fields. The Report View shows Pick first point: However when I type numbers the Python console shows changes: Gui.activeDocument().activeView().viewAxonometric() or Gui.activeDocument().activeView().viewTop()

I suspect either a bug is sending the keyboard data to the wrong place or I need to do something extra to keep the keyboard data going to the correct area.

OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.Unknown
Build type: Unknown
Python version: 2.7.11
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.8.0.oce-0.17
Steps To Reproducebejant reports seeing the same issue and provides additional hints.

Postby bejant ยป Sun Dec 04, 2016 2:49 pm
I see the problem now. Typing "re" (without the quotes) opens the Draw A Rectangle tool, but if the cursor is not in the 3D window, or is in the 3D window and does not move, keying in the numerals 0 to 6 changes the view instead of the spinbox values (and keying the numerals 7 - 9 has no effect). Even though the number in the "Global X" spinbox is highlighted, the cursor has to move in the 3D view, changing the spinbox values, before the keyboard can be used to enter the coordinates.

The first time I tried to reproduce your problem I must have moved the cursor in the 3D view by mistake, so I got different results.

The problem happened in both versions (my 0.17 version is dated 2016-11-29 which is a few weeks after the issue #2756 fix):

OS: Ubuntu 16.04.1 LTS
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.16.6707 (Git)
Build type: None
Branch: releases/FreeCAD-0-16
Hash: 5465bc47c95db45e0be85dc0e2872419efadce0f
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

OS: Ubuntu 16.04.1 LTS
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.17.9088 (Git)
Build type: None
Branch: master
Hash: 537cfb2d48ee915b11ef1987880a5229255e4047
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
Additional Informationdiscussed in the forum:

Tagskeyboard, shortcuts


2016-12-05 00:25ruchgNew Issue
2016-12-18 17:33wmayerProject@4@ => Draft


2016-12-29 18:07

administrator   ~0007557

This is a know old problem... Never been able to find a good solution
2016-12-29 18:08yorikAssigned To => yorik
2016-12-29 18:08yorikStatusnew => assigned
2017-02-17 17:16Kunda1Tag Attached: keyboard
2017-02-17 17:16Kunda1Tag Attached: shortcuts


2017-04-16 17:07

administrator   ~0008835

Fix committed to master branch.
2017-04-16 17:07yorikChangeset attached => FreeCAD master fcae6ef4
2017-04-16 17:07yorikStatusassigned => closed
2017-04-16 17:07yorikResolutionopen => fixed
2017-04-16 20:45Kunda1Changeset attached => FreeCAD master ff9b027d

Related Changesets

FreeCAD: master fcae6ef4

2017-04-16 17:07:15


Details Diff
Draft: Finally fixed Draft UI focus bug - fixes 0002810
mod - src/Mod/Draft/ Diff File

FreeCAD: master ff9b027d

2017-04-16 17:09:57


Details Diff
Draft: Adding missing stuff from last commit
mod - src/Mod/Draft/ Diff File

Issue History

Date Modified Username Field Change
2016-12-05 00:25 ruchg New Issue
2016-12-18 17:33 wmayer Project @4@ => Draft
2016-12-29 18:07 yorik Note Added: 0007557
2016-12-29 18:08 yorik Assigned To => yorik
2016-12-29 18:08 yorik Status new => assigned
2017-02-17 17:16 Kunda1 Tag Attached: keyboard
2017-02-17 17:16 Kunda1 Tag Attached: shortcuts
2017-04-16 17:07 yorik Changeset attached => FreeCAD master fcae6ef4
2017-04-16 17:07 yorik Note Added: 0008835
2017-04-16 17:07 yorik Status assigned => closed
2017-04-16 17:07 yorik Resolution open => fixed
2017-04-16 20:45 Kunda1 Changeset attached => FreeCAD master ff9b027d