Skip to content

Commit

Permalink
Fix #609 (#610)
Browse files Browse the repository at this point in the history
* Fix #609

* Update CHANGELOG.md
  • Loading branch information
kpqi5858 authored Dec 19, 2022
1 parent eb1b260 commit 695c148
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

* Update configuration.md
* Correct scan code to properly recognize F11 and F12 key
* Fix KDE plasmashell crash #609

## 3.0.1

Expand Down
4 changes: 3 additions & 1 deletion src/frontends/qt5/src/input_context.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "input_context.hpp"

#include <QMetaEnum>
#include <QtCore/QCoreApplication>
#include <QtGui/QGuiApplication>
#include <QtGui/QKeyEvent>
#include <QtGui/QTextCharFormat>

Expand Down Expand Up @@ -90,6 +90,7 @@ bool KimeInputContext::filterEvent(const QEvent *event) {
}

void KimeInputContext::preedit_str(kime::RustStr s) {
this->focus_object = qApp->focusObject();
if (!this->focus_object) {
return;
}
Expand All @@ -105,6 +106,7 @@ void KimeInputContext::preedit_str(kime::RustStr s) {
}

void KimeInputContext::commit_str(kime::RustStr s) {
this->focus_object = qApp->focusObject();
if (!this->focus_object) {
return;
}
Expand Down

0 comments on commit 695c148

Please sign in to comment.