File tree Expand file tree Collapse file tree
wind_input/internal/coordinator
wind_setting/frontend/src/schemas Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6868| 序号 | 功能 | 配置项 | 初步状态 | 实测状态 | 备注 |
6969| ------| ------| --------| ----------| ----------| ------|
7070| 13 | 字体大小 | ` ui.font_size ` | ❓ | | 12-36px |
71- | 14 | 每页候选数 | ` ui.candidates_per_page ` | ✅ | | 3-9 个 |
71+ | 14 | 每页候选数 | ` ui.candidates_per_page ` | ✅ | | 2-10 个 |
7272| 15 | 自定义字体 | ` ui.font_path ` | ❓ | | 字体文件路径 |
7373
7474### 3.2 编码显示
Original file line number Diff line number Diff line change @@ -646,7 +646,7 @@ func (c *Coordinator) HandleKeyEvent(data bridge.KeyEventData) (result *bridge.K
646646 if len (c .inputBuffer ) > 0 {
647647 pageStart := (c .currentPage - 1 ) * c .candidatesPerPage
648648 idx := pageStart + 1
649- if idx < len (c .candidates ) {
649+ if idx < len (c .candidates ) && idx - pageStart < c . candidatesPerPage {
650650 return c .selectCandidate (idx )
651651 }
652652 // 候选不足时(含无候选),按 overflow 策略处理
@@ -673,7 +673,7 @@ func (c *Coordinator) HandleKeyEvent(data bridge.KeyEventData) (result *bridge.K
673673 if len (c .inputBuffer ) > 0 {
674674 pageStart := (c .currentPage - 1 ) * c .candidatesPerPage
675675 idx := pageStart + 2
676- if idx < len (c .candidates ) {
676+ if idx < len (c .candidates ) && idx - pageStart < c . candidatesPerPage {
677677 return c .selectCandidate (idx )
678678 }
679679 // 候选不足时(含无候选),按 overflow 策略处理
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export const candidateWindowSchema: PageSchema = [
4444 key : "ui.candidates_per_page" ,
4545 label : "每页候选数" ,
4646 hint : "每页显示的候选词数量" ,
47- min : 3 ,
47+ min : 2 ,
4848 max : 10 ,
4949 step : 1 ,
5050 displayValue : ( v ) => `${ v } 个` ,
You can’t perform that action at this time.
0 commit comments