Fix bug with text input after mouse click to left/right panels, toolbar or statusbar.
This commit is contained in:
parent
a34b9f0a5d
commit
e10b46c0fc
|
@ -162,11 +162,8 @@ define([
|
|||
|
||||
$(document.body).on('blur', 'input, textarea', function(e) {
|
||||
if (!me.isModalShowed) {
|
||||
/*
|
||||
* TODO: Workaround bug #25004. Clipboard feature processing in sdk.
|
||||
*/
|
||||
if (!(Common.Utils.isSafari && Common.Utils.isMac) && !/area_id/.test(e.target.id) &&
|
||||
$(e.target).parent().find(e.relatedTarget).length<1 /* When focus in combobox goes from input to it's menu button or menu items */) {
|
||||
if (!/area_id/.test(e.target.id) && $(e.target).parent().find(e.relatedTarget).length<1 /* When focus in combobox goes from input to it's menu button or menu items */
|
||||
|| !e.relatedTarget) {
|
||||
me.api.asc_enableKeyEvents(true);
|
||||
if (/msg-reply/.test(e.target.className))
|
||||
me.dontCloseDummyComment = false;
|
||||
|
|
|
@ -146,11 +146,8 @@ define([
|
|||
|
||||
$(document.body).on('blur', 'input, textarea', function(e) {
|
||||
if (!me.isModalShowed) {
|
||||
/*
|
||||
* TODO: Workaround bug #25004. Clipboard feature processing in sdk.
|
||||
*/
|
||||
if (!(Common.Utils.isSafari && Common.Utils.isMac) && !/area_id/.test(e.target.id) &&
|
||||
$(e.target).parent().find(e.relatedTarget).length<1 /* When focus in combobox goes from input to it's menu button or menu items */) {
|
||||
if (!/area_id/.test(e.target.id) && $(e.target).parent().find(e.relatedTarget).length<1 /* When focus in combobox goes from input to it's menu button or menu items */
|
||||
|| !e.relatedTarget) {
|
||||
me.api.asc_enableKeyEvents(true);
|
||||
if (/msg-reply/.test(e.target.className))
|
||||
me.dontCloseDummyComment = false;
|
||||
|
|
|
@ -158,8 +158,9 @@ define([
|
|||
|
||||
$(document.body).on('blur', 'input, textarea', function(e) {
|
||||
if (this.isAppDisabled === true) return;
|
||||
if (!me.isModalShowed && !(me.loadMask && me.loadMask.isVisible()) && !/area_id/.test(e.target.id) &&
|
||||
$(e.target).parent().find(e.relatedTarget).length<1 /* When focus in combobox goes from input to it's menu button or menu items */) {
|
||||
if (!me.isModalShowed && !(me.loadMask && me.loadMask.isVisible()) &&
|
||||
(!/area_id/.test(e.target.id) && $(e.target).parent().find(e.relatedTarget).length<1 /* When focus in combobox goes from input to it's menu button or menu items */
|
||||
|| !e.relatedTarget)) {
|
||||
me.api.asc_enableKeyEvents(true);
|
||||
if (/msg-reply/.test(e.target.className))
|
||||
me.dontCloseDummyComment = false;
|
||||
|
|
Loading…
Reference in a new issue