From 279b23bdd1ea0df6785b02875e2d59b43df15626 Mon Sep 17 00:00:00 2001 From: Qijia Liu Date: Sun, 24 Dec 2023 23:04:24 -0500 Subject: [PATCH] auto load spell --- src/hallelujah-addon.conf.in.in | 3 +++ src/hallelujah.cpp | 4 ---- src/hallelujah.h | 2 -- 3 files changed, 3 insertions(+), 6 deletions(-) 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());