Bug 211195

Summary: Ctrl+Space doesn't work in FileSystem Browser or in embedding applications.
Product: [Applications] kate Reporter: Olivier.jg <olivier.jg>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: apaku
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Olivier.jg 2009-10-20 14:01:42 UTC
Version:            (using KDE 4.3.2)
OS:                Linux
Installed from:    Gentoo Packages

Ctrl+Space is added as a KAction in kateview.cpp to open the code completion menu. Because of this, pressing Ctrl+Space outside of the editor does nothing. This means that items in the FileSystem browser cannot be selected using the Ctrl+Arrow Keys and then Ctrl+Space (rather useful, see Dolphin for when it works). On top of that, it won't work in applications that embed Kate, such as KDevelop, which resulted in this bug: https://bugs.kde.org/show_bug.cgi?id=184253

Can this shortcut be moved easily into "KateViewInternal::keyPressEvent"? I'm willing to provide a patch if so.
Comment 1 Andreas Pakulat 2009-10-20 14:12:20 UTC
That analysis seems to be wrong, kate has various other actions that do not influence other widgets. Of course it could be that the ShortcutContext on the action is set wrong (it should be WidgetWithChildren) which makes it an application-global shortcut that doesn't care about wether the kateview is focussed or not.

Long story short: Somethings wrong with the ctrl+space shortcut, it triggers even when kateview doesn't have keyboard focus. Testable by using ctrl+space in the filesystem view in kate.
Comment 2 Andreas Pakulat 2009-11-16 09:50:53 UTC
*** Bug 184253 has been marked as a duplicate of this bug. ***
Comment 3 Dominik Haumann 2010-02-19 13:01:04 UTC
Cannot reproduce. For me, CTRL+Space does nothing. However, I can still select multiple files in the file browser by using CTRL+SHIFT+up/down and CTRL+SHIFT+Space.
Comment 4 Olivier.jg 2010-02-19 14:38:07 UTC
CTRL+Space is the issue, I think (apaku?).
It works in Konqueror/Dolphin, presumably the reason it doesn't work in kate is that it's stolen for code-completion (which it shouldn't unless it's in the editor window).
Comment 5 Anders Lund 2010-02-19 14:53:59 UTC
Maybe the shortcut context can be set in a better way?
Comment 6 Andreas Pakulat 2010-02-19 17:25:46 UTC
hmm, I wonder what I was smoking :) Obviously Ctrl+Space does not select items in the filesystemview, its rather Ctrl+Shift+Space. And that works - both in kate as well as in kdevelop.