Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortcuts not working on Linux OpenSUSE and French keyboard #1975

Open
Androz2091 opened this issue Mar 14, 2024 · 1 comment
Open

Shortcuts not working on Linux OpenSUSE and French keyboard #1975

Androz2091 opened this issue Mar 14, 2024 · 1 comment
Labels
investigating Let's check, maybe there's something about it... linux it's Linux related

Comments

@Androz2091
Copy link

Androz2091 commented Mar 14, 2024

Hello,
I'm using openSUSE Leap 5.5 and a French azerty keyboard.
Unfortunately, the CTRL + 1, CTRL + 2, etc. shortcuts are completely broken.
CTRL + D, CTRL + Z etc works perfectly fine

I tried to debug by getting some logs of the pressed keys:

java.awt.event.KeyEvent[KEY_PRESSED,keyCode=0,keyText=Unknown keyCode: 0x0,keyChar='ç',keyLocation=KEY_LOCATION_UNKNOWN,rawCode=18,primaryLevelUnicode=231,scancode=0,extendedKeyCode=0x10000c7] on com.cburch.logisim.gui.main.Canvas[,0,0,619x936,layout=java.awt.FlowLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777217,maximumSize=,minimumSize=,preferredSize=java.awt.Dimension[width=619,height=936]]
java.awt.event.KeyEvent[KEY_PRESSED,keyCode=523,keyText=Underscore,keyChar='_',keyLocation=KEY_LOCATION_STANDARD,rawCode=17,primaryLevelUnicode=95,scancode=0,extendedKeyCode=0x20b] on com.cburch.logisim.gui.main.Canvas[,0,0,619x936,layout=java.awt.FlowLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777217,maximumSize=,minimumSize=,preferredSize=java.awt.Dimension[width=619,height=936]]
java.awt.event.KeyEvent[KEY_PRESSED,keyCode=0,keyText=Unknown keyCode: 0x0,keyChar='è',keyLocation=KEY_LOCATION_UNKNOWN,rawCode=16,primaryLevelUnicode=232,scancode=0,extendedKeyCode=0x10000e8] on com.cburch.logisim.gui.main.Canvas[,0,0,619x936,layout=java.awt.FlowLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777217,maximumSize=,minimumSize=,preferredSize=java.awt.Dimension[width=619,height=936]]
java.awt.event.KeyEvent[KEY_PRESSED,keyCode=45,keyText=Minus,keyChar='-',keyLocation=KEY_LOCATION_STANDARD,rawCode=15,primaryLevelUnicode=45,scancode=0,extendedKeyCode=0x2d] on com.cburch.logisim.gui.main.Canvas[,0,0,619x936,layout=java.awt.FlowLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777217,maximumSize=,minimumSize=,preferredSize=java.awt.Dimension[width=619,height=936]]
java.awt.event.KeyEvent[KEY_PRESSED,keyCode=519,keyText=Left Parenthesis,keyChar='(',keyLocation=KEY_LOCATION_STANDARD,rawCode=14,primaryLevelUnicode=40,scancode=0,extendedKeyCode=0x207] on com.cburch.logisim.gui.main.Canvas[,0,0,619x936,layout=java.awt.FlowLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777217,maximumSize=,minimumSize=,preferredSize=java.awt.Dimension[width=619,height=936]]
java.awt.event.KeyEvent[KEY_PRESSED,keyCode=150,keyText=Ampersand,keyChar='&',keyLocation=KEY_LOCATION_STANDARD,rawCode=10,primaryLevelUnicode=38,scancode=0,extendedKeyCode=0x96] on com.cburch.logisim.gui.main.Canvas[,0,0,619x936,layout=java.awt.FlowLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777217,maximumSize=,minimumSize=,preferredSize=java.awt.Dimension[width=619,height=936]]
java.awt.event.KeyEvent[KEY_PRESSED,keyCode=0,keyText=Unknown keyCode: 0x0,keyChar='é',keyLocation=KEY_LOCATION_UNKNOWN,rawCode=11,primaryLevelUnicode=233,scancode=0,extendedKeyCode=0x10000e9] on com.cburch.logisim.gui.main.Canvas[,0,0,619x936,layout=java.awt.FlowLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777217,maximumSize=,minimumSize=,preferredSize=java.awt.Dimension[width=619,height=936]]
java.awt.event.KeyEvent[KEY_PRESSED,keyCode=152,keyText=Double Quote,keyChar='"',keyLocation=KEY_LOCATION_STANDARD,rawCode=12,primaryLevelUnicode=34,scancode=0,extendedKeyCode=0x98] on com.cburch.logisim.gui.main.Canvas[,0,0,619x936,layout=java.awt.FlowLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777217,maximumSize=,minimumSize=,preferredSize=java.awt.Dimension[width=619,height=936]]
java.awt.event.KeyEvent[KEY_PRESSED,keyCode=222,keyText=Quote,keyChar=''',keyLocation=KEY_LOCATION_STANDARD,rawCode=13,primaryLevelUnicode=39,scancode=0,extendedKeyCode=0xde] on com.cburch.logisim.gui.main.Canvas[,0,0,619x936,layout=java.awt.FlowLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777217,maximumSize=,minimumSize=,preferredSize=java.awt.Dimension[width=619,height=936]]
java.awt.event.KeyEvent[KEY_PRESSED,keyCode=519,keyText=Left Parenthesis,keyChar='(',keyLocation=KEY_LOCATION_STANDARD,rawCode=14,primaryLevelUnicode=40,scancode=0,extendedKeyCode=0x207] on com.cburch.logisim.gui.main.Canvas[,0,0,619x936,layout=java.awt.FlowLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777217,maximumSize=,minimumSize=,preferredSize=java.awt.Dimension[width=619,height=936]]
java.awt.event.KeyEvent[KEY_PRESSED,keyCode=45,keyText=Minus,keyChar='-',keyLocation=KEY_LOCATION_STANDARD,rawCode=15,primaryLevelUnicode=45,scancode=0,extendedKeyCode=0x2d] on com.cburch.logisim.gui.main.Canvas[,0,0,619x936,layout=java.awt.FlowLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777217,maximumSize=,minimumSize=,preferredSize=java.awt.Dimension[width=619,height=936]]
java.awt.event.KeyEvent[KEY_PRESSED,keyCode=0,keyText=Unknown keyCode: 0x0,keyChar='è',keyLocation=KEY_LOCATION_UNKNOWN,rawCode=16,primaryLevelUnicode=232,scancode=0,extendedKeyCode=0x10000e8] on com.cburch.logisim.gui.main.Canvas[,0,0,619x936,layout=java.awt.FlowLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777217,maximumSize=,minimumSize=,preferredSize=java.awt.Dimension[width=619,height=936]]
java.awt.event.KeyEvent[KEY_PRESSED,keyCode=523,keyText=Underscore,keyChar='_',keyLocation=KEY_LOCATION_STANDARD,rawCode=17,primaryLevelUnicode=95,scancode=0,extendedKeyCode=0x20b] on com.cburch.logisim.gui.main.Canvas[,0,0,619x936,layout=java.awt.FlowLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777217,maximumSize=,minimumSize=,preferredSize=java.awt.Dimension[width=619,height=936]]
java.awt.event.KeyEvent[KEY_PRESSED,keyCode=0,keyText=Unknown keyCode: 0x0,keyChar='ç',keyLocation=KEY_LOCATION_UNKNOWN,rawCode=18,primaryLevelUnicode=231,scancode=0,extendedKeyCode=0x10000c7] on com.cburch.logisim.gui.main.Canvas[,0,0,619x936,layout=java.awt.FlowLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777217,maximumSize=,minimumSize=,preferredSize=java.awt.Dimension[width=619,height=936]]
java.awt.event.KeyEvent[KEY_PRESSED,keyCode=18,keyText=Alt,keyChar=Undefined keyChar,modifiers=Alt,extModifiers=Alt,keyLocation=KEY_LOCATION_LEFT,rawCode=64,primaryLevelUnicode=0,scancode=0,extendedKeyCode=0x12] on com.cburch.logisim.gui.main.Canvas[,0,0,619x936,layout=java.awt.FlowLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777217,maximumSize=,minimumSize=,preferredSize=java.awt.Dimension[width=619,height=936]]

As you can see, some are these:

java.awt.event.KeyEvent[KEY_PRESSED,keyCode=0,keyText=Unknown keyCode: 0x0,keyChar='é',keyLocation=KEY_LOCATION_UNKNOWN,rawCode=11,primaryLevelUnicode=233,scancode=0,extendedKeyCode=0x10000e9] on ...

This is typically CTRL + 2 (CTRL + é on my keyboard). It seems like the app can't even get a right key code?
Everything works well as soon as I switch to a US keyboard layout (or any qwerty or qwertz).

Do you know if there is something I can do to fix this? I don't think it really comes from my keyboard (for instance CTRL + 6 is typically CTRL + the minus sign and it's working well in any other app).

I can spend more time to understand what's the issue if needed

Thank you

P.S: tested on master branch

@Androz2091 Androz2091 changed the title Shortcuts not working on Linux OpenSUSE Shortcuts not working on Linux OpenSUSE and French keyboard Mar 14, 2024
@maehne maehne added investigating Let's check, maybe there's something about it... linux it's Linux related labels May 15, 2024
@maehne
Copy link
Member

maehne commented May 15, 2024

Sorry for the delayed reply. From own experience, I know how special French AZERTY keyboards behave. Before digging further: Have you tried whether Ctrl+Shift+1, Ctrl+Shift+2, etc. may produce the expected results? French AZERTY keyboards require one to press Shift + the number key to actually yield the input of a digit. Another thing to check would be whether the keyboard shortcut works with the keys on the number pad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating Let's check, maybe there's something about it... linux it's Linux related
Projects
None yet
Development

No branches or pull requests

2 participants