@@ -31,7 +31,7 @@ import {
3131import { escHandler , createEhContext } from './helper' ;
3232import { quickFavorite } from './quickFavorite' ;
3333import { crossSiteLink } from './crossSiteLink' ;
34- import { hotkeysPageTurn } from './hotkeys' ;
34+ import { addHotkeysActions } from './hotkeys' ;
3535import { colorizeTag } from './colorizeTag' ;
3636import { quickRating } from './quickRating' ;
3737import { quickTagDefine } from './quickTagDefine' ;
@@ -47,8 +47,8 @@ import { expandTagList } from './expandTagList';
4747 const context = await createEhContext ( {
4848 /** 关联外站 */
4949 cross_site_link : true ,
50- /** 快捷键 */
51- hotkeys : true ,
50+ /** 增加快捷键操作 */
51+ add_hotkeys_actions : true ,
5252 /** 识别广告页 */
5353 detect_ad : true ,
5454 /** 快捷收藏 */
@@ -87,17 +87,18 @@ import { expandTagList } from './expandTagList';
8787 < >
8888 < For
8989 each = { [
90+ 'colorize_tag' , // 标签染色
9091 'float_tag_list' , // 悬浮标签列表
9192 'expand_tag_list' , // 展开标签列表
9293 'tag_lint' , // 标签检查
93- 'colorize_tag' , // 标签染色
9494 '' ,
9595 'quick_favorite' , // 快捷收藏
9696 'quick_rating' , // 快捷评分
9797 'quick_tag_define' , // 快捷查看标签定义
9898 '' ,
9999 'cross_site_link' , // 关联外站
100100 'detect_ad' , // 识别广告页
101+ 'add_hotkeys_actions' , // 增加快捷键操作
101102 'auto_adjust_option' , // 自动调整配置
102103 ] }
103104 >
@@ -181,7 +182,7 @@ import { expandTagList } from './expandTagList';
181182 requestIdleCallback ( ( ) => expandTagList ( context ) , 1000 ) ;
182183
183184 // 不是漫画页就退出
184- if ( context . type !== 'gallery' ) return hotkeysPageTurn ( context ) ;
185+ if ( context . type !== 'gallery' ) return addHotkeysActions ( context ) ;
185186
186187 // 自动调整阅读配置
187188 if (
@@ -374,7 +375,7 @@ import { expandTagList } from './expandTagList';
374375 } , sidebarDom ) ;
375376
376377 // 等加载按钮渲染好后再绑定快捷键,防止在还没准备好时就触发加载导致出错
377- if ( options . hotkeys ) hotkeysPageTurn ( context ) ;
378+ addHotkeysActions ( context ) ;
378379
379380 /** 获取新的图片页地址 */
380381 const getNewImgPageUrl = async ( url : string ) => {
0 commit comments