-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Bug Fix For When "/" Overides external text #2894
base: next
Are you sure you want to change the base?
Bug Fix For When "/" Overides external text #2894
Conversation
src/components/modules/ui.ts
Outdated
@@ -477,6 +477,12 @@ export default class UI extends Module<UINodes> { | |||
* @param {KeyboardEvent} event - keyboard event | |||
*/ | |||
private documentKeydown(event: KeyboardEvent): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this method is designed to handle keydowns on document. I'm afraid that this change break something like inserting new block on Enter when no block is focused, etc.
The possible problem place is the BlockEvents@slachPressed
this.Editor.Caret.insertContentAtCaretPosition('/');
So it is expected to see a fix there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@neSpecc I have moved the fix to BlockEvents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @neSpecc, have you had a chance to check this again?
Related Issue
What Changed
Testing Strategy
https://www.loom.com/share/a1ab1fa550624cb39f8765eda68af1ca