ui/toolbar/enabletoolbarkeyboardfocus
@ckeditor/ckeditor5-ui/src/toolbar/enabletoolbarkeyboardfocus
Filtering
Functions
-
enableToolbarKeyboardFocus( options = { options.origin, options.originKeystrokeHandler, options.originFocusTracker, options.toolbar, [options.beforeFocus], [options.afterBlur] } )
module:ui/toolbar/enabletoolbarkeyboardfocus~enableToolbarKeyboardFocus
Enables focus/blur toolbar navigation using
Alt+F10
andEsc
keystrokes.Parameters
options : Object
Options of the utility.
Propertiesoptions.origin : *
A view to which the focus will return when
Esc
is pressed andoptions.toolbar
is focused.options.originKeystrokeHandler : KeystrokeHandler
A keystroke handler to register
Alt+F10
keystroke.options.originFocusTracker : FocusTracker
A focus tracker for
options.origin
.options.toolbar : ToolbarView
A toolbar which is to gain focus when
Alt+F10
is pressed.[ options.beforeFocus ] : function
A callback executed before the
options.toolbar
gains focus upon theAlt+F10
keystroke.[ options.afterBlur ] : function
A callback executed after
options.toolbar
loses focus uponEsc
keystroke but before the focus goes back tooptions.origin
.
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.