Skip to content

Commit

Permalink
auto load spell
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj committed Dec 25, 2023
1 parent afaf2e3 commit 279b23b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 3 additions & 0 deletions src/hallelujah-addon.conf.in.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ Version=@PROJECT_VERSION@
Library=libhallelujah
Type=SharedLibrary
OnDemand=True

[Addon/Dependencies]
0=spell
4 changes: 0 additions & 4 deletions src/hallelujah.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,6 @@ HallelujahEngine::HallelujahEngine(Instance *instance)

HallelujahEngine::~HallelujahEngine() { factory_.unregister(); }

void HallelujahEngine::activate(const InputMethodEntry &, InputContextEvent &) {
spell();
}

void HallelujahEngine::reset(const InputMethodEntry &,
InputContextEvent &event) {
auto ic = event.inputContext();
Expand Down
2 changes: 0 additions & 2 deletions src/hallelujah.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ class HallelujahEngine final : public InputMethodEngine {
HallelujahEngine(Instance *instance);
~HallelujahEngine();

void activate(const InputMethodEntry &entry,
InputContextEvent &event) override;
void keyEvent(const InputMethodEntry &entry, KeyEvent &keyEvent) override;
void reset(const InputMethodEntry &, InputContextEvent &event) override;
FCITX_ADDON_DEPENDENCY_LOADER(spell, instance_->addonManager());
Expand Down

0 comments on commit 279b23b

Please sign in to comment.