BUG:368130
Details
- Reviewers
- None
- Group Reviewers
KTextEditor
I'm not a vi mode user, so I can't say what is to be expect.
I guess after press Ctrl-F again they should disappear. Right now is the search field cleared.
It would be nice someone take over this patch and finish it or give useful hints how to fix that further, if needed.
Diff Detail
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Hm, I currently cannot say anything to this patch. I wonder where the \r comes from. And also, I wonder whether this if now is ever true? ...but if it fixes the issue... @cullmann: objections to a blind commit?
- Assume you add "qDebug() << keyEvent;" on top of this function
- For whatever reason is by Ctrl-F this code running with
KateVi::Completer::completerHandledKeypress: QKeyEvent(KeyPress, Key_Enter)
- When you you hint return it looks like this...
KateVi::Completer::completerHandledKeypress: QKeyEvent(KeyPress, Key_Return, text="\r")
- ...and the search bar disappears now
hm, it may better to avoid to call that function at all in case of Ctrl-F (?) Will take a look.
OK. I spend some time again, but give up now.
I've got the feeling that these key event handling is not very well engineered.
May someone else take a closer look for some better solution, or at least try this patch, if it breaks some other functionality.