[GH-ISSUE #1876] [Bug] Shortcut event doesn't work in some keyboard layout type #734

Closed
opened 2026-03-23 20:40:21 +00:00 by mirror · 11 comments
Owner

Originally created by @LucasXu0 on GitHub (Feb 21, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/1876

Bug Description

For example, the slash command doesn't work in Sweden's keyboard layout type.

How to Reproduce

  1. Switch the keyboard layout type to Sweden.
  2. Press the slash /.
  3. The slash menu doesn't show.

Expected Behavior

The slash menu shows as expected.

Operating System

macOS

AppFlowy Version(s)

0.1.0

Screenshots

Screenshot 2023-02-21 at 11 52 10

Additional Context

For now, the editor uses LogicalKeyboardKey.xxx to determine which event has been triggered.

Originally created by @LucasXu0 on GitHub (Feb 21, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/1876 ### Bug Description For example, the slash command doesn't work in Sweden's keyboard layout type. ### How to Reproduce 1. Switch the keyboard layout type to Sweden. 2. Press the slash `/`. 3. The slash menu doesn't show. ### Expected Behavior The slash menu shows as expected. ### Operating System macOS ### AppFlowy Version(s) 0.1.0 ### Screenshots <img width="899" alt="Screenshot 2023-02-21 at 11 52 10" src="https://user-images.githubusercontent.com/11863087/220243276-48b24584-3244-4e66-a59a-0d05014357b7.png"> ### Additional Context For now, the editor uses LogicalKeyboardKey.xxx to determine which event has been triggered.
mirror 2026-03-23 20:40:21 +00:00
Author
Owner

@MayurSMahajan commented on GitHub (Feb 21, 2023):

As a permanent solution, for this issue and similar issues like these, we are going to implement Custom Shortcuts Feature. Wherein the users will be able to customize these kinds of functionalities with whatever key combinations of their choice.

<!-- gh-comment-id:1437840667 --> @MayurSMahajan commented on GitHub (Feb 21, 2023): As a permanent solution, for this issue and similar issues like these, we are going to implement **Custom Shortcuts Feature**. Wherein the users will be able to customize these kinds of functionalities with whatever key combinations of their choice.
Author
Owner

@LucasXu0 commented on GitHub (Feb 21, 2023):

As a permanent solution, for this issue and similar issues like these, we are going to implement Custom Shortcuts Feature. Wherein the users will be able to customize these kinds of functionalities with whatever key combinations of their choice.

Yes. However, for some built-in shortcuts, like slash, enter, and backspace those required shortcuts, we don't want users to have to customize shortcuts to use them, although they can customize them.

<!-- gh-comment-id:1437879094 --> @LucasXu0 commented on GitHub (Feb 21, 2023): > As a permanent solution, for this issue and similar issues like these, we are going to implement **Custom Shortcuts Feature**. Wherein the users will be able to customize these kinds of functionalities with whatever key combinations of their choice. Yes. However, for some built-in shortcuts, like slash, enter, and backspace those required shortcuts, we don't want users to have to customize shortcuts to use them, although they can customize them.
Author
Owner

@devzu commented on GitHub (Feb 24, 2023):

From Sweden, with a swedish keyboard layout, and just came here because this is the first thing I noticed when trying out AppFlowy for the first time.
There's no other way to open this menu either - so I cannot do anything but just write text and change the styling of it.
As a user, I agree with LucasXu0, I don't think users should have to costumize shortcuts to even be able to use the app.

<!-- gh-comment-id:1443637111 --> @devzu commented on GitHub (Feb 24, 2023): From Sweden, with a swedish keyboard layout, and just came here because this is the first thing I noticed when trying out AppFlowy for the first time. There's no other way to open this menu either - so I cannot do anything but just write text and change the styling of it. As a user, I agree with LucasXu0, I don't think users should have to costumize shortcuts to even be able to _use_ the app.
Author
Owner

@rileyhawk1417 commented on GitHub (Mar 6, 2023):

@devzu would a auto-detect feature layout work?

<!-- gh-comment-id:1456055964 --> @rileyhawk1417 commented on GitHub (Mar 6, 2023): @devzu would a `auto-detect` feature layout work?
Author
Owner

@annieappflowy commented on GitHub (Mar 9, 2023):

Status on fixing this issue? @LucasXu0

<!-- gh-comment-id:1461289379 --> @annieappflowy commented on GitHub (Mar 9, 2023): Status on fixing this issue? @LucasXu0
Author
Owner

@Xazin commented on GitHub (Mar 21, 2023):

This is a POC for TextEventHandlers, that would abstract Text Commands from Keyboard Commands: github.com/Xazin/appflowy-editor@ffb57d1394

This would solve it for any keyboard layout.

(Based on Discord convo in AppFlowy Discord)

<!-- gh-comment-id:1477810532 --> @Xazin commented on GitHub (Mar 21, 2023): This is a POC for TextEventHandlers, that would abstract Text Commands from Keyboard Commands: https://github.com/Xazin/appflowy-editor/commit/ffb57d1394499da326ed3d59f0760d771c28af3d This would solve it for any keyboard layout. _(Based on Discord convo in AppFlowy Discord)_
Author
Owner

@miko007 commented on GitHub (Apr 1, 2023):

i do not really know how things work here, but if this has been merged last week, is there a specific reason, this fix is not present in the latest release?

<!-- gh-comment-id:1493120133 --> @miko007 commented on GitHub (Apr 1, 2023): i do not really know how things work here, but if this has been merged last week, is there a specific reason, this fix is not present in the latest release?
Author
Owner

@annieappflowy commented on GitHub (Apr 6, 2023):

@miko007 , I suppose it's fixed. What keyboard do you use? And which version do you run on?

<!-- gh-comment-id:1498998776 --> @annieappflowy commented on GitHub (Apr 6, 2023): @miko007 , I suppose it's fixed. What keyboard do you use? And which version do you run on?
Author
Owner

@LucasXu0 commented on GitHub (Apr 6, 2023):

Hey, @miko007. This issue has been fixed, but it hasn't been included in the new version yet. Now we trigger the slash menu by typing the character '/'. This means it won't be affected by the keyboard type again.

<!-- gh-comment-id:1499155940 --> @LucasXu0 commented on GitHub (Apr 6, 2023): Hey, @miko007. This issue has been fixed, but it hasn't been included in the new version yet. Now we trigger the slash menu by typing the character '/'. This means it won't be affected by the keyboard type again.
Author
Owner

@miko007 commented on GitHub (Apr 24, 2023):

with AppFlowy v0.1.3 i can now confirm, that this is no longer an issue. the / command now works on all my devices.

<!-- gh-comment-id:1520047571 --> @miko007 commented on GitHub (Apr 24, 2023): with AppFlowy v0.1.3 i can now confirm, that this is no longer an issue. the `/` command now works on all my devices.
Author
Owner

@Xazin commented on GitHub (May 13, 2023):

@annieappflowy This can be closed again 👍

<!-- gh-comment-id:1546730948 --> @Xazin commented on GitHub (May 13, 2023): @annieappflowy This can be closed again :+1:
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#734
No description provided.