spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.27k stars 1.61k forks source link

Alt+Space shortcut cannot be set in Spyder 4 #10786

Closed gerazov closed 4 years ago

gerazov commented 4 years ago

Moved to Spyder 4 RC2 - awesome work guys! The dark theme is super slick!

I miss something from previouos Spyders though - I cannot set the Alt+Space shortcut anymore. I had this for delete line (and have it in all my other editors).

So if it's fixable I would appreciate if you can bring it back : )

ccordoba12 commented 4 years ago

Ok, we'll take a look at it in the future.

jnsebgosselin commented 4 years ago

Please see https://github.com/spyder-ide/spyder/issues/7981, it is closely related to the issue reported here.

jnsebgosselin commented 4 years ago

Also, @gerazov, what is your operating system? Thanks!

gerazov commented 4 years ago

Yeah, I saw #7981 but most of it was about Emacs support, I just wanted my shortcut back :smile: I'm on Manjaro 18.1.2 with KDE running on kernel 5.3.8-3.

jnsebgosselin commented 4 years ago

Yeah, I saw #7981 but most of it was about Emacs support, I just wanted my shortcut back 😄 I'm on Manjaro 18.1.2 with KDE running on kernel 5.3.8-3.

What happens when you try to set the shortcut with Alt + Space?

gerazov commented 4 years ago

Nothing happens - like I didn't press anything, but Alt+x gets registered fine.

FabianHofmann commented 4 years ago

Hey, I'm having the same issue using Ubuntu 18.04

ccordoba12 commented 4 years ago

@FabianHofmann, those kind of comments are not helpful. For next time please leave an emoji reaction on the issue description.

jnsebgosselin commented 4 years ago

Nothing happens - like I didn't press anything, but Alt+x gets registered fine.

Ok thanks. I don't understand why it is not registered because we are not blocking it. So if the OS is not eating the event, it should be passed to the shortcut editor dialog.

When you press Alt + Space in the Editor, is this registered as a normal space? Sorry, but I don't have access to your OS, so I'm trying to guess where the problem is from your inputs.

goanpeca commented 4 years ago

Manjaro 18.1.2 with KDE running on kernel 5.3.8-3.

I could create a VM later and try to see what the issue is. On Mac alt+space is registered fine.

goanpeca commented 4 years ago

This is close enough, right? https://osdn.net/projects/manjaro/storage/kde/18.1.3/manjaro-kde-18.1.3-191114-linux53.iso/ @gerazov ?

jnsebgosselin commented 4 years ago

Manjaro 18.1.2 with KDE running on kernel 5.3.8-3.

I could create a VM later and try to see what the issue is. On Mac alt+space is registered fine.

Cool thanks! On Windows, I haven't found a way yet to override without some dirty hack the open the window menu that is triggered by Alt + Space.

goanpeca commented 4 years ago

without some dirty hack

We will probably need to do this anyway even if to notify the user this is not a suitable shortcut on windows as it interferes with the OS

gerazov commented 4 years ago

@jnsebgosselin yeah Alt+space adds spaces in the editor. KDE does define this is a shortcut to krunner but I've disabled that in the System Settings.

I have Spyder 3 still installed in a different conda environment and the shortcut is working fine and does register in the keyboard settings.

@goanpeca that's the one.

jnsebgosselin commented 4 years ago

@jnsebgosselin yeah Alt+space adds spaces in the editor. KDE does define this is a shortcut to krunner but I've disabled that in the System Settings.

I have Spyder 3 still installed in a different conda environment and the shortcut is working fine and does register in the keyboard settings.

Ok thanks, that is useful. I can reproduce this on Windows with Ctrl+Space.

I think I have found a way to fix that, I'll submit a PR.

goanpeca commented 4 years ago

On KDE alt+space has already meaning so I dont think there ismuch we can do about it

Screen Shot 2019-11-25 at 19 36 15
goanpeca commented 4 years ago
Screen Shot 2019-11-25 at 19 35 43
jnsebgosselin commented 4 years ago

On KDE alt+space has already meaning so I dont think there ismuch we can do about it

Yes but, if you disable it through the system settings, like @gerazov did, is it working after the change I'm proposing in PR #10836?

goanpeca commented 4 years ago

Yes but, if you disable it through the system settings, like @gerazov did, is it working after the change I'm proposing in PR #10836?

Screen Shot 2019-11-25 at 19 43 58

Yep it does work @jnsebgosselin

gerazov commented 4 years ago

ok great - thanks! :smile: