[BUG]Macroeditor doesn't accept serveral letters

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!
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: [BUG]Macroeditor doesn't accept serveral letters

Post by openBrain »

For reference, the warning is raised here : https://codebrowser.dev/qt5/qtbase/src/ ... pp.html#84

@strahlensauger Could you also try to change the keyboard layout set in your DE preferences ?

And an eventual interesting reading : https://bbs.archlinux.org/viewtopic.php?id=265821
mrmena
Posts: 1
Joined: Wed Jan 20, 2021 10:02 pm

Re: [BUG]Macroeditor doesn't accept serveral letters

Post by mrmena »

I'm experiencing a similar issue, although my 'e' key works fine in the macro editor, just not the 'w' and 't' keys.

I have a seemingly related issue, but with the text in the spreadsheet fields and text fields in general, for example, the Length field of the Pad Parameters dialog. 'w' and 't' never appear. 'e' will appear if typed more than once.

In addition to the 'w' and 't' keys not working, some numeric keys not working correctly when entering values into text fields. This affects both the numpad and the top row of the main keyboard. When I attempt to manually enter the length of a pad using the Pad Parameters dialog in the Tasks panel, the numbers 0 through 6 don't output the corresponding digit in text fields. Instead, they activate a specific view. It behaves as if the focus is on the 3D view, even after manually clicking into the Length field of the Pad Parameters dialog. If I hold the ALT key when typing 0 - 6, the digit DOES get entered and everything works as expected.

Keypress - Action
--------------------
0 - Isometric
1 - Front
2 - Top
3 - Right
4 - Rear
5 - Bottom
6 - Left

Digits 7, 8 and 9 work fine and display the relevant digit.

I also get this error on boot up:

Code: Select all

21:42:57  Recent macros : keyboard shortcut 1 disabled because conflicting with Std_ViewFront
These lines continue increasing (keyboard shortcut 2, 3, etc) with more recent macros. Not sure if this is related.

I don't have an earlier weekly build to test it on but I can confirm that it works fine on the latest stable release

Non working weekly release:

Code: Select all

OS: Arch Linux (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31709 (Git) AppImage
Build type: Release
Branch: master
Hash: e188802ca6997d2564e7570ab648462e6a059f87
Python 3.10.8, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/Australia (en_AU)
Installed mods: 
  * Assembly4 0.12.3
  * fasteners 0.3.50
  * Help 1.0.3
  * Pyramids-and-Polyhedrons

Working release:

Code: Select all

OS: Arch Linux (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.2.29603 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.20.2)
Hash: 930dd9a76203a3260b1e6256c70c1c3cad8c5cb8
Python 3.10.8, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/Australia (en_AU)
Installed mods: 
  * Assembly4 0.12.3
  * fasteners 0.3.50
  * Help 1.0.3
  * Pyramids-and-Polyhedrons
Output of locale

Code: Select all

LANG=en_AU.UTF-8
LC_CTYPE="en_AU.UTF-8"
LC_NUMERIC="en_AU.UTF-8"
LC_TIME="en_AU.UTF-8"
LC_COLLATE="en_AU.UTF-8"
LC_MONETARY="en_AU.UTF-8"
LC_MESSAGES="en_AU.UTF-8"
LC_PAPER="en_AU.UTF-8"
LC_NAME="en_AU.UTF-8"
LC_ADDRESS="en_AU.UTF-8"
LC_TELEPHONE="en_AU.UTF-8"
LC_MEASUREMENT="en_AU.UTF-8"
LC_IDENTIFICATION="en_AU.UTF-8"
LC_ALL=
strahlensauger
Posts: 33
Joined: Thu Dec 16, 2021 8:13 pm

Re: [BUG]Macroeditor doesn't accept serveral letters

Post by strahlensauger »

Could you please give output of locale
Here is my locale:

Code: Select all

CLANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=sud 
I also experience the issues with the numbers 1-6 described by mrmena.
Changing locales to US doesn't solve the problem.
herbk
Veteran
Posts: 2657
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: [BUG]Macroeditor doesn't accept serveral letters

Post by herbk »

Quote from my post at german forum.
@herbk hast du unter MacOS auch die Probleme mit Buchstaben, die nicht bei Eingabe reagieren?
Yes, it's the same problem here, some letters don't work to, e works here, w, t, z don't. And also, like mrmena wrote, the numbers are working if i hold the Alt key when typing.

But i'm not at MacOS, i'm at a Linux to. MacOS is chrisb, but he don't use the AppImage.

Code: Select all

OS: openSUSE Tumbleweed (KDE//usr/share/xsessions/plasma5)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31772 (Git) AppImage
Build type: Release
Branch: master
Hash: 87c5b891352580568592cbba0e746269f726c43c
Python 3.10.9, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: German/Germany (de_DE)
Installed mods: 

It seems that only Linux systems are affected. I have one laptop with BS KDE Neon, which is based at Ubuntu LTS, it shows the same behavior.
Gruß Herbert
User avatar
onekk
Veteran
Posts: 6144
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: [BUG]Macroeditor doesn't accept serveral letters

Post by onekk »

It is not the case that KDE redefine some keys?

trying it on Arch Linux with a FC version comepiled by @adrianinsaval it works as expected:

Code: Select all

OS: Artix Linux (openbox)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31766 (Git)
Build type: None
Branch: master
Hash: 2880a5ca2ac02acc67ce3c3acc0afca148cb139a
Python 3.10.9, Qt 5.15.8, Coin 4.0.1, Vtk 9.1.0, OCC 7.6.3
Locale: English/United States (en_US) [ OS: Italian/Italy (it_IT) ]
Installed mods: 
  * fcgear 1.0.0
  * Assembly4 0.12.4
  * toSketch 1.0.1
  * Curves 0.5.8
  * Help 1.0.3
But I use Openbox and so I have control on what shortcut are active.

It is common in other software that the WM/DE defined shortcuts will interfere with the application installed, in some DE there are controls to redefine shortcuts for the DE or to exclude some shortcuts when the mouse is on a specified windows, but as I'm not using a DE but a more simple WM I don't know where to direct you to check this things.

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/
herbk
Veteran
Posts: 2657
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: [BUG]Macroeditor doesn't accept serveral letters

Post by herbk »

Hi Carlo,
you also not using an AppImage, - could you please download the latest and try with it.

The reason why i'm in mind that's a FC problem: AppImage up to 0.21.0.31556 (Git) AppImage are working like expected, newer don't -at the same PC, no differents at the settings, the locate and so on...
Gruß Herbert
strahlensauger
Posts: 33
Joined: Thu Dec 16, 2021 8:13 pm

Re: [BUG]Macroeditor doesn't accept serveral letters

Post by strahlensauger »

Hi Carlo,
as herbk said, we are talking about the Appimage after version 31513.

My Appimage doesn't work on KDE or on xmonad (both on Arch Linux).
I'm pretty sure it has to do with Qt 5.15.6.
The older versions of FreeCAD using Qt 5.15.4 aren't affected.

I suppose on Artix it won't work either...
But you are using Qt 5.15.8, maybe the error is gone with a newer Qt?


@herbk sorry I mixed you and chrisb's OS... :lol:
User avatar
onekk
Veteran
Posts: 6144
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: [BUG]Macroeditor doesn't accept serveral letters

Post by onekk »

herbk wrote: Mon Feb 06, 2023 7:50 pm Hi Carlo,
you also not using an AppImage, - could you please download the latest and try with it.

The reason why i'm in mind that's a FC problem: AppImage up to 0.21.0.31556 (Git) AppImage are working like expected, newer don't -at the same PC, no differents at the settings, the locate and so on...
Sorry not at the moment, I'm on a wireless data connection, so downloading 1Gb of data to do an experiment is not an option for now. Not everyone has a optic fiber connection at an affordable price.

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/
herbk
Veteran
Posts: 2657
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: [BUG]Macroeditor doesn't accept serveral letters

Post by herbk »

It seams to be solved with

Code: Select all

OS: openSUSE Tumbleweed (KDE//usr/share/xsessions/plasma5)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31812 (Git) AppImage
Build type: Release
Branch: master
Hash: c074fe1c95e5aa4f21a11d1387c2ae38f5014a4d
Python 3.10.9, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: German/Germany (de_DE)
Installed mods: 
...
Gruß Herbert
herbk
Veteran
Posts: 2657
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: [BUG]Macroeditor doesn't accept serveral letters

Post by herbk »

Now i'm very confused: Yesterday i downlooadet the last AppImage and try'd changing the value of a simple box by clicking to the Data Field and typing 123, - it workd, i got a 123mm long box.
Today if i try the same it dos not work again, and, more worse, it works also not at 0.21.0.31556, wich workd before.

Very strange... :? :?
Gruß Herbert
Post Reply