Skip to content

Commit 3fb150d

Browse files
patrickdemooij9nul800sebastiaan
authored andcommitted
11315: Don't unbind unbinding keys
1 parent 122caf8 commit 3fb150d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Umbraco.Web.UI.Client/src/common/services/editor.service.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,13 +214,14 @@ When building a custom infinite editor view you can use the same components as a
214214
* Method to tell editors that they are begin blurred.
215215
*/
216216
function blur() {
217-
218-
/* keyboard shortcuts will be overwritten by the new infinite editor
217+
if (isEnabled === true) {
218+
/* keyboard shortcuts will be overwritten by the new infinite editor
219219
so we need to store the shortcuts for the current editor so they can be rebound
220220
when the infinite editor closes
221221
*/
222-
unbindKeyboardShortcuts();
223-
isEnabled = false;
222+
unbindKeyboardShortcuts();
223+
isEnabled = false;
224+
}
224225
}
225226
/**
226227
* @ngdoc method

0 commit comments

Comments
 (0)