Bug 237490 - if Align is bound to TAB Kate catches TAB key even without focus
Summary: if Align is bound to TAB Kate catches TAB key even without focus
Status: RESOLVED NOT A BUG
Alias: None
Product: kdevelop
Classification: Applications
Component: general (other bugs)
Version First Reported In: 4.0.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: 4.0.1
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-13 13:19 UTC by Gert Wollny
Modified: 2010-05-13 18:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gert Wollny 2010-05-13 13:19:17 UTC
Version:           4.0.0 (using KDE 4.4.3)
Compiler:          gcc/g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3 
OS:                Linux
Installed from:    Ubuntu Packages

I've set the TAB key in Kate to the "align" command. However, now I can no longer switch between controls, when the focus is outside the editor. Instead  the "align" command is executed in the editor. I came across the problem trying to use the "replace" dialog, but its actually the case for all controls: Kate catches the TAB key and runs the align command. 
When I remove the Kate TAB key binding, I can move around the controls, but using the TAB key to align the code properly is really the main feature that kept me from using KDevelop until now.
Comment 1 Andreas Pakulat 2010-05-13 16:36:39 UTC
I'm sorry, but thats the expected behaviour. Shortcuts are supposed to be application-global, not bound to a specific widget.
Comment 2 Gert Wollny 2010-05-13 18:49:20 UTC
Then, it seems, that some actions are considered to be more global then others: Code alignment is called regardless of focus and so is "save file" - (one exception: the console has the focus). 
The shortcut for code completion only works with the focus on the editor, as does the shortcut for "kill line", or delete character.

In summary, to me it seems that shortcuts that are related to editing are non-global and others are global. Aligning code is an editing action, and therefore, IMHO its shortcut should be non-global.