sloppyfocus: revert to original setFocus() activation
The port regressed because I replaced the original's pane->setFocus() with MainWindow::activateView() on a theory that setFocus() didn't move Kate's focus. The original logic was correct and working; activateView() broke it (and can't target the pointed pane for a split of the same document). Restore the exact original activation. The port is now logic-identical to the standalone plugin; confirmed working in a live split.
This commit is contained in:
parent
fd84f59f14
commit
0c379feb4e
|
|
@ -14,6 +14,7 @@
|
||||||
#define DEFT_SLOPPYFOCUSPLUGIN_H
|
#define DEFT_SLOPPYFOCUSPLUGIN_H
|
||||||
|
|
||||||
#include <KTextEditor/ConfigPage>
|
#include <KTextEditor/ConfigPage>
|
||||||
|
#include <KTextEditor/Document>
|
||||||
#include <KTextEditor/MainWindow>
|
#include <KTextEditor/MainWindow>
|
||||||
#include <KTextEditor/Plugin>
|
#include <KTextEditor/Plugin>
|
||||||
#include <KTextEditor/View>
|
#include <KTextEditor/View>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue