Well, this works quite well in fact.

Fixed #6843 and #6845. Tab doesn't go out of the konsole part anymore,
but it goes into it, and Shift+Tab goes in and out.
I hope this doesn't affect konsole itself - I can't see how it would.

svn path=/trunk/kdebase/konsole/; revision=59064
wilder-portage
David Faure 26 years ago
parent 0f90437c21
commit 912318e213
  1. 1
      include/TEWidget.h
  2. 8
      src/TEWidget.C
  3. 1
      src/konsole_part.C

@ -107,6 +107,7 @@ protected:
void focusInEvent( QFocusEvent * );
void focusOutEvent( QFocusEvent * );
bool focusNextPrevChild( bool next );
// Dnd
void dragEnterEvent(QDragEnterEvent* event);
void dropEvent(QDropEvent* event);

@ -824,6 +824,14 @@ void TEWidget::focusOutEvent( QFocusEvent * )
// do nothing, to prevent repainting
}
bool TEWidget::focusNextPrevChild( bool next )
{
if (next)
return false; // This disables changing the active part in konqueror
// when pressing Tab
return QFrame::focusNextPrevChild( next );
}
int TEWidget::charClass(char ch) const
{

@ -110,7 +110,6 @@ konsolePart::konsolePart(QWidget *parentWidget, const char *widgetName, QObject
if (shell == NULL || *shell == '\0') shell = "/bin/sh";
eargs.append(shell);
te = new TEWidget(parentWidget,widgetName);
te->setFocusPolicy(QWidget::ClickFocus);
te->setMinimumSize(150,70); // allow resizing, cause resize in TEWidget
te->setScrollbarLocation(TEWidget::SCRRIGHT);
setWidget(te);

Loading…
Cancel
Save