From f058d54229f497d4ba51c2b7f73cbac85422ee93 Mon Sep 17 00:00:00 2001 From: xue <2144439972@qq.com> Date: Thu, 18 Sep 2025 10:14:55 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../thunderbird/include/ThunderBirdPresenter.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdPresenter.h b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdPresenter.h index ea224f050..7d71f47de 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdPresenter.h +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdPresenter.h @@ -21,8 +21,8 @@ namespace OHOS ThunderBirdPresenter(); virtual ~ThunderBirdPresenter(); - void OnTickEvent() override; - void Notify() override {} + void OnTickEvent() override{} + void Notify() override; void OnStart() override; void OnResume() override; @@ -32,6 +32,15 @@ namespace OHOS // 发布事件函数 void PublishEvent(uint16_t topic, uint8_t *data = nullptr, uint32_t size = 0); + // 按键注册方法 + bool RegisterKeyEvents(void); + bool RegisterPowerKeyLongPressEvent(void); + bool RegisterPowerKeyPressEvent(void); + bool RegisterFuncKeyPressEvent(void); + bool RegisterFuncKeyLongPressEvent(void); + bool RegisterVendorUpKeyPressEvent(void); + bool RegisterVendorDownKeyPressEvent(void); + private: bool OnKeyAct(UIView &view, const KeyEvent &event) override; // 增加按键事件 bool X_DRAG_FLAG{false}; -- 2.17.1