getCurrentPage: function () {
return this.currentPage;
},
+
}
if (shortcut === 'pageup' || shortcut === 'pagedown' || shortcut === 'enter') {
return true;
}
- return !$(document.activeElement).is('input,textarea,select');
+ return !this.linkeditor.utils.isfocusOnFormItem();
},
+
openImageLink: function () {
let selection = $(".link[fb-type=6].selected");
if (selection.length !== 1 || selection.attr('fb-alternative') == '') {
$("[data-key]").each(function () {
let e = $(this);
key($(this).data('key'), function () {
+ if ($(e).is('[data-key-skipintextfields]') && $this.linkeditor.utils.isfocusOnFormItem()) {
+ return true;
+ }
$(e).addClass('hover');
$this.linkeditor.runAction($(e).data('action'));
setTimeout(function () {
r2.top > r1.bottom ||
r2.bottom < r1.top);
},
+ isfocusOnFormItem: function () {
+ return $(document.activeElement).is('input,textarea,select');
+ }
};
module.exports = LinkeditorUtils;
data-key="ctrl+s"></a>
<a href="#" data-icon="undo" data-action="undo.undo"
data-tooltip="{{__('Annuler la dernière modification')}} (Ctrl+Z)"
- data-key="ctrl+z"></a>
+ data-key="ctrl+z" data-key-skipintextfields></a>
<a href="#" data-icon="redo" data-action="undo.redo"
data-tooltip="{{__('Rétablir la derière modification')}} (Ctrl+Maj+Z)"
- data-key="ctrl+shift+z"></a>
+ data-key="ctrl+shift+z" data-key-skipintextfields></a>
<div class="separator"></div>
<a href="#" data-action="zoom.reset" data-icon="zoom-reset"
data-tooltip="{{__('Réinitialiser le zoom')}} (Esc)" data-key="esc, ctrl+0, ctrl+numpad0"></a>