-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keyboard shortcut for strikethrough overwrites browser shortcut for switching to right to left language layout #2540
Comments
https://defkey.com/search?irq=strikethrough has a list of keyboard shortcuts in other apps for strikethrough... seems to be very inconsistent. Having an 'S' in there would match the icon that's used on tiptap.dev and other instances i saw. |
I'm happy to provide a PR if I know what to change it to. In firefox it defaults to creating a screenshot. However one could work around this by focusing a different dom element than the editor and pressing |
What about |
If a keyboard shortcut is needed for strikethrough, I would like to share some thoughts but I have to highlight that I rarely use strikethrough and having no shortcut is also fine (for now, I guess 😄):
|
About 4: plus and minus should be reserved to zoom-in/out I think, with or without modifier keys. |
Well |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue still persists. |
On latest MacOS (v12.5.1) and latest Firefox (104.0.1 (64-bit)), the shortcut I suppose |
What do you mean by perfectly fine?
The issue i tried to point out is that the keyboard shortcut is conflicting with a browser default shortcut that may be important for people writing text in hebrew, arabic or other right to left languages. |
I understand the issue/conflict with right to left languages. I made a recording. Ok, now I am confused. Somehow the first attempt did not work but then it worked. Check the video. Screen.Recording.2022-09-07.at.12.13.17.mov |
This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days |
What’s the bug you are facing?
When using a tiptap editor with strikethrough nodes pressing
ctrl+shift+x
results in switching to strikethrough. However this shortcut is the default for switching to a right to left language layout and back in firefox. Using it in the github editor for example changes the text input layout to provide for better input experience for hebrew and arabic and other rtl languages.How can we reproduce the bug on our side?
Press
ctrl+shift+x
in the editor on tiptap.devOpen a comment here with firefox and press
ctrl+shift+x
to see the expected behavior.Can you provide a CodeSandbox?
tiptap.dev ;)
What did you expect to happen?
Open a comment here with firefox and press
ctrl+shift+x
to see the expected behavior.Anything to add? (optional)
I'm not sure how relevant this is. Chrome only seems to offer the switch in a browser extension. If the language settings of the browser are a rtl language this will probably also be the default for the text entry. So it's only necessary if you want to write non-rtl text in an rtl language browser or the other way round. However this can be a frequent in a multi language environment.
I'm also not aware of any workarounds to switch the text entry direction without the keyboard shortcut - but i am also not writing rtl languages.
Just wanted to flag this as a possible issue. Feel free to close if picking a different default for the keyboard shortcut is problematic.
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: