Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
ff3143e9
Commit
ff3143e9
authored
Jun 23, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Изменения в связи с правками в сдк для ввода иероглифов.
fixed Bug 32701, fixed Bug 32696.
parent
27f8f62c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
3 deletions
+38
-3
apps/common/main/lib/component/ComboBox.js
apps/common/main/lib/component/ComboBox.js
+2
-0
apps/common/main/lib/component/Menu.js
apps/common/main/lib/component/Menu.js
+3
-0
apps/documenteditor/main/app/controller/Main.js
apps/documenteditor/main/app/controller/Main.js
+11
-1
apps/presentationeditor/main/app/controller/Main.js
apps/presentationeditor/main/app/controller/Main.js
+11
-1
apps/spreadsheeteditor/main/app/controller/Main.js
apps/spreadsheeteditor/main/app/controller/Main.js
+11
-1
No files found.
apps/common/main/lib/component/ComboBox.js
View file @
ff3143e9
...
...
@@ -232,6 +232,7 @@ define([
},
onBeforeShowMenu
:
function
(
e
)
{
Common
.
NotificationCenter
.
trigger
(
'
menu:show
'
);
this
.
trigger
(
'
show:before
'
,
this
,
e
);
if
(
this
.
options
.
hint
)
{
var
tip
=
this
.
cmpEl
.
data
(
'
bs.tooltip
'
);
...
...
@@ -273,6 +274,7 @@ define([
onAfterHideMenu
:
function
(
e
)
{
this
.
cmpEl
.
find
(
'
.dropdown-toggle
'
).
blur
();
this
.
trigger
(
'
hide:after
'
,
this
,
e
);
Common
.
NotificationCenter
.
trigger
(
'
menu:hide
'
);
},
onAfterKeydownMenu
:
function
(
e
)
{
...
...
apps/common/main/lib/component/Menu.js
View file @
ff3143e9
...
...
@@ -410,6 +410,8 @@ define([
},
onBeforeShowMenu
:
function
(
e
)
{
Common
.
NotificationCenter
.
trigger
(
'
menu:show
'
);
if
(
this
.
mustLayout
)
{
delete
this
.
mustLayout
;
this
.
doLayout
.
call
(
this
);
...
...
@@ -439,6 +441,7 @@ define([
onAfterHideMenu
:
function
(
e
)
{
this
.
trigger
(
'
hide:after
'
,
this
,
e
);
Common
.
NotificationCenter
.
trigger
(
'
menu:hide
'
);
},
onAfterKeydownMenu
:
function
(
e
)
{
...
...
apps/documenteditor/main/app/controller/Main.js
View file @
ff3143e9
...
...
@@ -172,7 +172,8 @@ define([
/*
* TODO: Workaround bug #25004. Clipboard feature processing in sdk.
*/
if
(
!
(
Common
.
Utils
.
isSafari
&&
Common
.
Utils
.
isMac
)
&&
!
/area_id/
.
test
(
e
.
target
.
id
))
{
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 */
)
{
me
.
api
.
asc_enableKeyEvents
(
true
);
if
(
/msg-reply/
.
test
(
e
.
target
.
className
))
me
.
dontCloseDummyComment
=
false
;
...
...
@@ -214,6 +215,15 @@ define([
me
.
onEditComplete
();
}
},
'
menu:show
'
:
function
(
e
){
me
.
api
.
asc_enableKeyEvents
(
false
);
},
'
menu:hide
'
:
function
(
e
){
if
(
!
me
.
isModalShowed
)
{
me
.
api
.
asc_enableKeyEvents
(
true
);
me
.
onEditComplete
();
}
},
'
edit:complete
'
:
_
.
bind
(
me
.
onEditComplete
,
me
)
});
...
...
apps/presentationeditor/main/app/controller/Main.js
View file @
ff3143e9
...
...
@@ -154,7 +154,8 @@ define([
/*
* TODO: Workaround bug #25004. Clipboard feature processing in sdk.
*/
if
(
!
(
Common
.
Utils
.
isSafari
&&
Common
.
Utils
.
isMac
)
&&
!
/area_id/
.
test
(
e
.
target
.
id
))
{
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 */
)
{
me
.
api
.
asc_enableKeyEvents
(
true
);
if
(
/msg-reply/
.
test
(
e
.
target
.
className
))
me
.
dontCloseDummyComment
=
false
;
...
...
@@ -196,6 +197,15 @@ define([
me
.
onEditComplete
();
}
},
'
menu:show
'
:
function
(
e
){
me
.
api
.
asc_enableKeyEvents
(
false
);
},
'
menu:hide
'
:
function
(
e
){
if
(
!
me
.
isModalShowed
)
{
me
.
api
.
asc_enableKeyEvents
(
true
);
me
.
onEditComplete
();
}
},
'
edit:complete
'
:
_
.
bind
(
me
.
onEditComplete
,
me
)
});
...
...
apps/spreadsheeteditor/main/app/controller/Main.js
View file @
ff3143e9
...
...
@@ -172,7 +172,8 @@ 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
))
{
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 */
)
{
me
.
api
.
asc_enableKeyEvents
(
true
);
if
(
/msg-reply/
.
test
(
e
.
target
.
className
))
me
.
dontCloseDummyComment
=
false
;
...
...
@@ -212,6 +213,15 @@ define([
me
.
onEditComplete
();
}
},
'
menu:show
'
:
function
(
e
){
me
.
api
.
asc_enableKeyEvents
(
false
);
},
'
menu:hide
'
:
function
(
e
){
if
(
!
me
.
isModalShowed
)
{
me
.
api
.
asc_enableKeyEvents
(
true
);
me
.
onEditComplete
();
}
},
'
edit:complete
'
:
_
.
bind
(
this
.
onEditComplete
,
this
),
'
settings:unitschanged
'
:
_
.
bind
(
this
.
unitsChanged
,
this
)
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment