禅道1424:解决手表-设置-显示方式-列表显示,编码器无法滑动列表问题 2539/1
authorluozheng <1732036298@qq.com>
Thu, 16 Oct 2025 08:37:52 +0000 (16:37 +0800)
committerluozheng <1732036298@qq.com>
Thu, 16 Oct 2025 08:37:52 +0000 (16:37 +0800)
code/sdk/application/wearable/n9/nativeapp/nativeui/applist/src/ApplistView.cpp

index 2442348..aefab5f 100644 (file)
@@ -886,6 +886,7 @@ void ApplistView::ListStyleOnStart()
     contentList_->SetScrollStateListener(presenter_);
     contentList_->SetMaxScrollDistance(MAX_SCROLL_DIS);
     contentList_->SetYScrollBarVisible(true);
+    contentList_->RequestFocus(); // 确保列表获得焦点
 
     dragListener_ = new AppListOnDragListener();
     if (dragListener_ == nullptr) {