Преглед изворни кода

Add keystroke param jsdoc.

Maciej Gołaszewski пре 6 година
родитељ
комит
a433077d50
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      packages/ckeditor5-restricted-editing/src/restrictededitingmodeui.js

+ 3 - 2
packages/ckeditor5-restricted-editing/src/restrictededitingmodeui.js

@@ -76,9 +76,10 @@ export default class RestrictedEditingModeUI extends Plugin {
 	 * @private
 	 * @param {String} commandName Name of the command the button represents.
 	 * @param {String} label Translated label of the button.
+	 * @param {String} keystroke Keystroke of the button.
 	 * @returns {module:ui/dropdown/utils~ListDropdownItemDefinition}
 	 */
-	_getButtonDefinition( commandName, label, kestroke ) {
+	_getButtonDefinition( commandName, label, keystroke ) {
 		const editor = this.editor;
 		const command = editor.commands.get( commandName );
 		const definition = {
@@ -86,7 +87,7 @@ export default class RestrictedEditingModeUI extends Plugin {
 			model: new Model( {
 				label,
 				withText: true,
-				keystroke: kestroke,
+				keystroke,
 				withKeystroke: true,
 				_commandName: commandName
 			} )