Bug 61782

Summary: QT Editor - tab key should enter a tab
Product: [Applications] kdevelop Reporter: Jon Smirl <jonsmirl>
Component: QEditorAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED INTENTIONAL    
Severity: normal    
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jon Smirl 2003-07-28 23:44:23 UTC
Version:           CVS (using KDE KDE 3.1)
Installed from:    RedHat RPMs

Typing the TAB key is not entering a tab into the text with the QTEditor. By default TAB is set to the editor INDENT function.

I think TAB should default to entering a tab character and let the user changing it if they want. I turned off the assignment of TAB to INDENT and TAB still didn't add tabs to my file. Using Ctrl-I does add a tab char.

Actual tab chars are required when editing Makefiles and some other config files.
Comment 1 Harald Fernengel 2003-07-29 16:34:58 UTC
qEditor is designed to behave similar to emacs, so the TAB key will indent by default. 
 
There's a flag (m_tabIndent in qeditor.h) which switches Tab-Indenting off, but afaik it is not 
publically available. If you want this bug fixed, just add a new checkbox to the configuration 
dialog, save the setting and send a patch :) 
Comment 2 Jon Smirl 2003-07-29 16:38:31 UTC
I went into the key assignment dialog and set the mapping for TAB to none from
it's default of indent. Shouldn't that have restored the TAB key as entering a
TAB character?
Comment 3 Matt Rogers 2006-03-16 21:35:40 UTC
QEditor has been removed for KDevelop 4 and none of these bugs will be fixed 
between now and then.