Open pjgorski opened 4 years ago
@jnsebgosselin, any ideas about what could be happening here?
I'll look into it.
Ok, I'm not sure this is a bug after all and I'm not sure there is anything that we can do about it.
You can read a potential explanation for this behaviour at https://en.wikipedia.org/wiki/AltGr_key under the section Control + Alt as a substitute
.
More specifically, it is said :
To allow the specific functionality of AltGr when typing non-English text on such keyboards, Windows allows it to be emulated by pressing the Alt key together with the Control key:
Ctrl+Alt ≈ AltGr
Therefore, it is recommended that this combination not be used as a modifier in Windows keyboard shortcuts as, depending on the keyboard layout and configuration, someone trying to type a special character with it may accidentally trigger the shortcut,[5] or the keypresses for the shortcut may be inadvertently interpreted as the user trying to input a special character.
So this is exactly what happens in my case. When I press AltGr + S
the save all
shortcut is triggered since it is mapped to Ctrl+Alt+ S
. The same thing also occurs for AltGr + D
since I have the docstrings
shortcut mapped to the Ctrl+Alt+D
.
The reason it is working in the console is because there is no shortcut mapped to Ctrl+Alt+ S
.
If I 'un-map' the save all
shortcut, then Ctrl+Alt+S
or AltGr+S
the the ß is typed in the editor as expected.
Similarly, if I 'un-map' the docstrings
shortcut, then I can write ð by pressing either Ctrl+Alt+D
or AltGr+D
Important note : It seems like a restart of Spyder is required for this to work after clearing the shortcuts though. I think this is a bug. I'll open another issue about it.
Thanks, I did it and it works. Sorry for trouble. I thought it was a bug, because for sure I could type 'ś' using AltGr and then suddenly after I misclicked on sth I couldn't.
Change the shortcut editor: save all (Ctrl + Alt + s) to other or clear it works properly. Thanks!
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
While still having Spyder 3.3.4 in the editor of Spyder I accidently pressed something. After that by pressing right-Alt + s instead of obtaining the letter 'ś', all open files save. Pressing just right-Alt makes all first letters in the Menu bar highligted.
There is no such shortcut listed in preferences. Normal file save (ctrl + s) works ok. And in the console right-Alt + s gives normal 'ś'.
I upgraded Spyder, and it still remains.
Earllier, I described the problem here: https://stackoverflow.com/questions/61220188/right-alt-shortcut-overwrites-default-behavior-in-spyder
What steps reproduce the problem?
NA
What is the expected output? What do you see instead?
Clicking
right-Alt+s
should give 'ś' letter. It saves all open files instead and no letter is given. This happens only in the editor. In the console I can normally write 'ś'.Paste Traceback/Error Below (if applicable)
NA
Versions
Dependencies