Number keys misbehaving

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
theber
Posts: 94
Joined: Tue Aug 06, 2019 5:44 am
Location: Germany

Number keys misbehaving

Post by theber »

Code: Select all

OS: Manjaro Linux (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31598 (Git) AppImage
Build type: Release
Branch: master
Hash: f7db685a2821adaf23c85a25855401ecc1eeff2c
Python 3.10.8, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * Assembly4 0.12.4
  * fasteners 0.4.15
  * Assembly3 0.11.3
  * temp_renamed_by_me_A2pConstraintDiagnostics
  * BIM 2021.12.0
  * A2plus 0.4.55
  * BIM.backup1662190127.9032624
When I use the above version in part design, the number keys work fine in sketcher, but when I use the pad or thickness tools the number keys just change the view orientation. It doesn't matter which number keys I use on the keyboard; the behavior is the same. The number entry fields are correctly highlighted. The only way to change the parameter is with the little up/down arrows.

If I use the standard version from the distro, then the number keys behave as expected. This is the "standard" version that works correctly:

Code: Select all

OS: Manjaro Linux (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.2.29603 (Git)
Build type: Release
Branch: makepkg
Hash: 930dd9a76203a3260b1e6256c70c1c3cad8c5cb8
Python 3.10.8, Qt 5.15.7, Coin 4.0.1, Vtk 9.1.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * Assembly4 0.12.4
  * fasteners 0.4.15
  * Assembly3 0.11.3
  * temp_renamed_by_me_A2pConstraintDiagnostics
  * BIM 2021.12.0
  * A2plus 0.4.55
  * BIM.backup1662190127.9032624
This is the file in question. It's the first file that I started with this weekly version.
There was a similar problem in the forum a few years ago with version 0.18, but it doesn't have a solution to my problem: https://forum.freecadweb.org/viewtopic.php?t=32759
Attachments
Magnet_Chamber.FCStd
(39.63 KiB) Downloaded 13 times
Last edited by theber on Thu Jan 26, 2023 6:41 pm, edited 1 time in total.
...alles ist fertig. es muss nur noch gemacht werden...
...that would be the easy way, but it wouldn't be the cowboy way...
User avatar
onekk
Veteran
Posts: 6206
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Number pad behaves wrong

Post by onekk »

It makes sense has you have a 104 or 105 keys keyboard so key you press are different.

Computer has some sense in evertything they do, probably it is not what you expect that usually it is not a nonsense.

Maybe there are around some settings, but I don't know for sure as I rarely use GUI.

Regards.

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
theber
Posts: 94
Joined: Tue Aug 06, 2019 5:44 am
Location: Germany

Re: Number pad behaves wrong

Post by theber »

Yes, I do have a "full" keyboard. But it doesn't matter which number key I press, either the one above the letters or the number pad on the right of the keyboard. If I try to pad something to 5 mm, then the view changes to bottom view, no matter which "5" key I press.
...alles ist fertig. es muss nur noch gemacht werden...
...that would be the easy way, but it wouldn't be the cowboy way...
User avatar
onekk
Veteran
Posts: 6206
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Number pad behaves wrong

Post by onekk »

theber wrote: Thu Jan 19, 2023 9:38 am ...
Sorry I have misunderstood.

Probably the control uses SpinBox and and for some reason it could not change the input method.

Did you try to click on the field and see if the cursor appear in the field?

Pad and Thickness tool are the Part Design WB tools?

@chrisb (The only Sketcher expert I have in mind) what do you think?

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
theber
Posts: 94
Joined: Tue Aug 06, 2019 5:44 am
Location: Germany

Re: Number pad behaves wrong

Post by theber »

Thanks for your reply.

Indeed, when I click in the field the cursor is present. I can also delete the digits that are in the field, but I can't add new digits. The view just changes.
And yes, these tools are from the part design workbench.

Edit: I just discovered that digits 7, 8, and 9 will work as expected, no doubt because they do not change the view orientation.
...alles ist fertig. es muss nur noch gemacht werden...
...that would be the easy way, but it wouldn't be the cowboy way...
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Number pad behaves wrong

Post by GeneFC »

theber wrote: Thu Jan 19, 2023 10:42 am
There have been a number of changes in FreeCAD recently with respect to Qt, spin boxes, etc. This may be a new bug.

But apparently already fixed.

https://forum.freecadweb.org/viewtopic. ... 88#p654188

Gene
theber
Posts: 94
Joined: Tue Aug 06, 2019 5:44 am
Location: Germany

Re: Number pad behaves wrong

Post by theber »

OK thanks. I'll give it a try with the latest appimage and report back. But not today anymore.
...alles ist fertig. es muss nur noch gemacht werden...
...that would be the easy way, but it wouldn't be the cowboy way...
theber
Posts: 94
Joined: Tue Aug 06, 2019 5:44 am
Location: Germany

Re: Number pad behaves wrong

Post by theber »

Not solved yet. I just tested the newest Appimage, and the problem is still there.

Code: Select all

OS: Manjaro Linux (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31625 (Git) AppImage
Build type: Release
Branch: master
Hash: 72df7997700062b6a02f2f208e6291f64073fb88
Python 3.10.8, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * Assembly4 0.12.4
  * fasteners 0.4.15
  * Assembly3 0.11.3
  * temp_renamed_by_me_A2pConstraintDiagnostics
  * BIM 2021.12.0
  * A2plus 0.4.55
  * BIM.backup1662190127.9032624
...alles ist fertig. es muss nur noch gemacht werden...
...that would be the easy way, but it wouldn't be the cowboy way...
theber
Posts: 94
Joined: Tue Aug 06, 2019 5:44 am
Location: Germany

Re: Number pad behaves wrong

Post by theber »

For what it's worth, the same Appimage works as desired when I execute it under Debian Testing:

Code: Select all

OS: Debian GNU/Linux bookworm/sid (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31625 (Git) AppImage
Build type: Release
Branch: master
Hash: 72df7997700062b6a02f2f208e6291f64073fb88
Python 3.10.8, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * Assembly4 0.12.4
  * fasteners 0.4.23
  * A2plus 0.4.60d
Hope this helps.
...alles ist fertig. es muss nur noch gemacht werden...
...that would be the easy way, but it wouldn't be the cowboy way...
theber
Posts: 94
Joined: Tue Aug 06, 2019 5:44 am
Location: Germany

Re: Number pad behaves wrong

Post by theber »

I have tested the latest AppImage on different computers and OS's. The number keys work correctly on Debian Testing and on OpenSUSE Leap 15.4.
The number keys work incorrectly on both Arch and Manjaro.
As a workaround on Arch I tried setting the units to cm/m²/m³, but that doesn't work either. If I try to enter 0,5 cm to get a 5 mm pad, the comma is accepted, but entering the "5" causes the view to change to "Bottom".
Would someone using Arch or Manjaro care to try to confirm - or contradict - this?

This works correctly:

Code: Select all

OS: openSUSE Leap 15.4 (KDE//usr/share/xsessions/plasma5)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31641 (Git) AppImage
Build type: Release
Branch: master
Hash: d28d63b87b60161419c6c0c532fbbfaed96926b8
Python 3.10.8, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * Assembly3 0.11.3
  * A2plus 0.4.59
  * Assembly4 0.12.4
  * BIM 2021.12.0
  * fasteners 0.4.6
This does not work:

Code: Select all

OS: Manjaro Linux (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31641 (Git) AppImage
Build type: Release
Branch: master
Hash: d28d63b87b60161419c6c0c532fbbfaed96926b8
Python 3.10.8, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * fasteners 0.4.12
  * A2plus 0.4.59c
  * Assembly4 0.12.4
  * Assembly4.backup1663170513.5815585
This does not work:

Code: Select all

OS: Arch Linux (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31641 (Git) AppImage
Build type: Release
Branch: master
Hash: d28d63b87b60161419c6c0c532fbbfaed96926b8
Python 3.10.8, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * BIM 2021.12.0
  * BOLTSFC
  * Assembly4 0.12.4
  * Assembly3 0.11.3
  * fasteners 0.4.15
  * A2plus 0.4.59d
...alles ist fertig. es muss nur noch gemacht werden...
...that would be the easy way, but it wouldn't be the cowboy way...
Post Reply