[rkward] rkward/windows: Fix Shift+Tab, while only calltip is active.

Thomas Friedrichsmeier null at kde.org
Thu Mar 7 09:22:36 GMT 2019


Git commit db9a55efb0a8da429b8ff8385d1051aad568dea5 by Thomas Friedrichsmeier.
Committed on 07/03/2019 at 09:22.
Pushed by tfry into branch 'master'.

Fix Shift+Tab, while only calltip is active.

M  +1    -1    rkward/windows/rkcodecompletion.cpp

https://commits.kde.org/rkward/db9a55efb0a8da429b8ff8385d1051aad568dea5

diff --git a/rkward/windows/rkcodecompletion.cpp b/rkward/windows/rkcodecompletion.cpp
index b0f1bc53..6db3aa4f 100644
--- a/rkward/windows/rkcodecompletion.cpp
+++ b/rkward/windows/rkcodecompletion.cpp
@@ -353,7 +353,7 @@ bool RKCompletionManager::eventFilter (QObject*, QEvent* event) {
 
 		// If only the calltip is active, make sure the tab-key and enter behave as a regular keys. There is no completion in this case.
 		if (active_models.count () == 1 && active_models[0] == callhint_model) {
-			if (((k->key () == Qt::Key_Tab) || (k->key () == Qt::Key_Return) || (k->key () == Qt::Key_Enter)) && (!k->modifiers ())) {
+			if (((k->key () == Qt::Key_Tab) || (k->key () == Qt::Key_Return) || (k->key () == Qt::Key_Enter)) || (k->key () == Qt::Key_Backtab)) {
 				keep_active = true;
 				cc_iface->abortCompletion (); // That's a bit lame, but the least hacky way to get the key into the document. keep_active=true, so
 				                              // the completion window should come back up, without delay



More information about the rkward-tracker mailing list