Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Docs: Fixed and extended documentation of enableToolbarKeyboardFocus(…
Browse files Browse the repository at this point in the history
…) helper and ContextualToolbar plugin.
  • Loading branch information
oleq committed Jul 12, 2017
1 parent 5e80e07 commit 7a5e6de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/toolbar/contextual/contextualtoolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export default class ContextualToolbar extends Plugin {
}

/**
* Adds panel view to the {@link: #_balloon} and attaches panel to the selection.
* Shows the toolbar and attaches it to the selection.
*
* Fires {@link #event:beforeShow} event just before displaying the panel.
*/
Expand Down Expand Up @@ -185,7 +185,7 @@ export default class ContextualToolbar extends Plugin {
}

/**
* Removes the toolbar from the {@link: #_balloon} which hides it.
* Hides the toolbar.
*/
hide() {
if ( this._balloon.hasView( this.toolbarView ) ) {
Expand Down
4 changes: 4 additions & 0 deletions src/toolbar/enabletoolbarkeyboardfocus.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
* for `options.origin`.
* @param {module:ui/toolbar/toolbarview~ToolbarView} options.toolbar A toolbar which is to gain
* focus when `Alt+F10` is pressed.
* @param {Function} [options.beforeFocus] A callback executed before the `options.toolbar` gains focus
* upon the `Alt+F10` keystroke.
* @param {Function} [options.afterBlur] A callback executed after `options.toolbar` loses focus upon
* `Esc` keystroke but before the focus goes back to `options.origin`.
*/
export default function enableToolbarKeyboardFocus( {
origin,
Expand Down

0 comments on commit 7a5e6de

Please sign in to comment.