diff --git a/src/hallelujah-addon.conf.in.in b/src/hallelujah-addon.conf.in.in index 3907cdd..bd00222 100644 --- a/src/hallelujah-addon.conf.in.in +++ b/src/hallelujah-addon.conf.in.in @@ -5,3 +5,6 @@ Version=@PROJECT_VERSION@ Library=libhallelujah Type=SharedLibrary OnDemand=True + +[Addon/Dependencies] +0=spell diff --git a/src/hallelujah.cpp b/src/hallelujah.cpp index 9ae9ef5..396330b 100644 --- a/src/hallelujah.cpp +++ b/src/hallelujah.cpp @@ -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(); diff --git a/src/hallelujah.h b/src/hallelujah.h index e959ed4..b5e5ae6 100644 --- a/src/hallelujah.h +++ b/src/hallelujah.h @@ -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());