@ckeditor/ckeditor5-undo 41.1.0 → 41.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@ msgid ""
14
14
  msgstr ""
15
15
  "Language-Team: Hebrew (https://app.transifex.com/ckeditor/teams/11143/he/)\n"
16
16
  "Language: he\n"
17
- "Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: (n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;\n"
17
+ "Plural-Forms: nplurals=3; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: 2;\n"
18
18
  "Content-Type: text/plain; charset=UTF-8\n"
19
19
 
20
20
  msgctxt "Toolbar button tooltip for the Undo feature."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-undo",
3
- "version": "41.1.0",
3
+ "version": "41.2.0",
4
4
  "description": "Undo feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,9 +13,9 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "@ckeditor/ckeditor5-core": "41.1.0",
17
- "@ckeditor/ckeditor5-engine": "41.1.0",
18
- "@ckeditor/ckeditor5-ui": "41.1.0"
16
+ "@ckeditor/ckeditor5-core": "41.2.0",
17
+ "@ckeditor/ckeditor5-engine": "41.2.0",
18
+ "@ckeditor/ckeditor5-ui": "41.2.0"
19
19
  },
20
20
  "author": "CKSource (http://cksource.com/)",
21
21
  "license": "GPL-2.0-or-later",
@@ -32,6 +32,7 @@ export default class UndoEditing extends Plugin {
32
32
  */
33
33
  init() {
34
34
  const editor = this.editor;
35
+ const t = editor.t;
35
36
  // Create commands.
36
37
  this._undoCommand = new UndoCommand(editor);
37
38
  this._redoCommand = new RedoCommand(editor);
@@ -78,5 +79,18 @@ export default class UndoEditing extends Plugin {
78
79
  editor.keystrokes.set('CTRL+Z', 'undo');
79
80
  editor.keystrokes.set('CTRL+Y', 'redo');
80
81
  editor.keystrokes.set('CTRL+SHIFT+Z', 'redo');
82
+ // Add the information about the keystrokes to the accessibility database.
83
+ editor.accessibility.addKeystrokeInfos({
84
+ keystrokes: [
85
+ {
86
+ label: t('Undo'),
87
+ keystroke: 'CTRL+Z'
88
+ },
89
+ {
90
+ label: t('Redo'),
91
+ keystroke: [['CTRL+Y'], ['CTRL+SHIFT+Z']]
92
+ }
93
+ ]
94
+ });
81
95
  }
82
96
  }