[Bug 55276] autocompletion part has strange behavior
Hamish Rodda
rodda at kde.org
Sun Nov 23 06:19:14 UTC 2003
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=55276
rodda at kde.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From rodda at kde.org 2003-11-23 06:17 -------
Subject: kdelibs/kate/part
CVS commit by rodda:
Fix undo functionality with code completion active.
Reviewed by Christoph Cullmann <cullmann at babylon2k.de>
CCMAIL: 55276-done at bugs.kde.org
M +10 -4 katecodecompletion.cpp 1.32
--- kdelibs/kate/part/katecodecompletion.cpp #1.31:1.32
@@ -203,7 +203,11 @@ bool KateCodeCompletion::eventFilter( QO
}
+ int qtKeyCode = ke->key() | ((ke->state() & Qt::ShiftButton) ? Qt::SHIFT : 0) | ((ke->state() & Qt::ControlButton) ? Qt::CTRL : 0) | ((ke->state() & Qt::AltButton) ? Qt::ALT : 0) | ((ke->state() & Qt::MetaButton) ? Qt::META : 0);
+
// redirect the event to the editor
if( ke->key() == Key_Backspace) {
m_view->backspace();
+ } else if (qtKeyCode == m_view->m_editUndo->shortcut().keyCodeQt()) {
+ m_view->m_editUndo->activate();
} else {
QApplication::sendEvent( m_view->m_viewInternal, e );
More information about the KDevelop-devel
mailing list