-
Notifications
You must be signed in to change notification settings - Fork 13
t/3: Implemented a keystroke to display the toolbar in a collapsed selection #8
Conversation
Tests? |
src/balloontoolbareditorui.js
Outdated
@@ -69,7 +69,13 @@ export default class BalloonToolbarEditorUI { | |||
origin: editor.editing.view, | |||
originFocusTracker: this.focusTracker, | |||
originKeystrokeHandler: editor.keystrokes, | |||
toolbar: contextualToolbar.toolbarView | |||
toolbar: contextualToolbar.toolbarView, | |||
beforeFocus: () => { |
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.
beforeFocus() { ....
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.
BTW, don't you think that beforeFocus
callback doing show()
is kinda odd? It's hard to read. I had to look into the code to figure out what's going on here.
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.
After a couple more minutes this looks reasonable... :D So I'm ok. But beforeFocus() { ... }
stays.
Well, this is what happens when you start your job one week and finish the next 😅 |
AFAIR this blur is a problem we already know about ckeditor/ckeditor5#353. |
Suggested merge commit message (convention)
Other: Implemented a keystroke to display the toolbar in a collapsed selection. Closes ckeditor/ckeditor5#2344.
Requires ckeditor/ckeditor5-ui#270.