fix: Slash is not being recognized by search in documentation

未关闭
#5,682 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@dvoituron 已经在做这个了。

开始于 2026年11月30日。

评估

这个 Issue 还没有评估数据。

描述

bug

🐛 Bug Report

The documentation contains an implemented search feature which can be triggered by pressing the slash key. However if your keyboard does not have a dedicated slash key it is impossible to trigger the search via keyboard.

A German keyboard hides the Slash by using CAPS and then the number 7. The keycode will define the key in the args as Digit7 which is excluded from the allowed keys. However the value contains the /

See:
grafik

💻 Repro or Code Sample

This can be reproduced in the demos

🤔 Expected Behavior

I expect the search to open after I pressed 7 with active Capslock just like it does on Github.

😯 Current Behavior

Nothing is happening. I can trigger it with the divide key on the numpad though.

💁 Possible Solution

The KeyCode component probably needs to get aware of different localized keyboards or a simple workaround needs to be added here.

主要语言
C#
星标
4.9k
派生
497
平均合并
1 天 1 小时
30 天内合并 PR
47

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/fluentui-blazor 的其他 Issue

查看 microsoft/fluentui-blazor 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。