ember-learn / ember-learn/ember-cli-addon-docs
Make keyboard shortcuts optional
未关闭
bug
- 主要语言
- JavaScript
- 星标
- 172
- 派生
- 142
- PR 合并指标
- 30 天内没有已合并 PR
描述
In addition to the `{{docs-keyboard-shortcuts}}` component, there are some keyboard shortcuts baked into `controllers/application.js` and `docs-viewer/component.js` that are enabled on initialization. These can interfere with components that have custom keyboard interactions.
A configuration option that disables shortcut initialization could solve this issue for some users.
贡献指南
调研方向
从 controllers/application.js 和 docs-viewer/component.js 开始,跟踪初始化期间启用的键盘快捷键以及当前处理配置的方式。定义配置入口点,并验证禁用该入口点会阻止这些快捷键,同时保留 {{docs-keyboard-shortcuts}} 组件的行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- frontend
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100