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
3c747fa3
Commit
3c747fa3
authored
Mar 14, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 31874, 31657, 31876
parent
748168de
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
15 deletions
+22
-15
apps/common/main/lib/extend/Bootstrap.js
apps/common/main/lib/extend/Bootstrap.js
+2
-2
apps/spreadsheeteditor/main/app/controller/DocumentHolder.js
apps/spreadsheeteditor/main/app/controller/DocumentHolder.js
+20
-11
apps/spreadsheeteditor/main/app/view/DocumentHolder.js
apps/spreadsheeteditor/main/app/view/DocumentHolder.js
+0
-2
No files found.
apps/common/main/lib/extend/Bootstrap.js
View file @
3c747fa3
...
...
@@ -16,12 +16,12 @@ function onDropDownKeyDown(e) {
if
(
$parent
.
hasClass
(
'
no-stop-propagate
'
)
&&
arguments
.
length
>
1
&&
arguments
[
1
]
instanceof
jQuery
.
Event
)
{
e
=
arguments
[
1
];
if
(
/^
(
38|40|27|13|9
)
$/
.
test
(
e
.
keyCode
))
{
if
(
/^
(
38|40|27|13|9
)
$/
.
test
(
e
.
keyCode
)
&&
!
e
.
ctrlKey
&&
!
e
.
altKey
)
{
patchDropDownKeyDownAdditional
.
call
(
this
,
e
);
e
.
preventDefault
();
e
.
stopPropagation
();
}
}
else
if
(
!
$parent
.
hasClass
(
'
no-stop-propagate
'
)
||
/^
(
38|40|27|13|9
)
$/
.
test
(
e
.
keyCode
))
{
}
else
if
(
!
$parent
.
hasClass
(
'
no-stop-propagate
'
)
||
/^
(
38|40|27|13|9
)
$/
.
test
(
e
.
keyCode
)
&&
!
e
.
ctrlKey
&&
!
e
.
altKey
)
{
patchDropDownKeyDown
.
call
(
this
,
e
);
e
.
preventDefault
();
e
.
stopPropagation
();
...
...
apps/spreadsheeteditor/main/app/controller/DocumentHolder.js
View file @
3c747fa3
...
...
@@ -1303,9 +1303,6 @@ define([
menu
.
addItem
(
mnu
);
});
Common
.
UI
.
Menu
.
Manager
.
hideAll
();
if
(
!
menu
.
rendered
)
{
// Prepare menu container
if
(
menuContainer
.
length
<
1
)
{
...
...
@@ -1313,15 +1310,15 @@ define([
documentHolderView
.
cmpEl
.
append
(
menuContainer
);
}
menu
.
render
(
menuContainer
);
menu
.
cmpEl
.
attr
({
tabindex
:
"
-1
"
});
menu
.
onAfterKeydownMenu
=
function
(
e
)
{
if
(
e
.
keyCode
==
Common
.
UI
.
Keys
.
RETURN
&&
(
e
.
ctrlKey
||
e
.
altKey
))
return
;
Common
.
UI
.
Menu
.
prototype
.
onAfterKeydownMenu
.
call
(
menu
,
e
);
menu
.
parentEl
.
on
(
'
keydown.after.bs.dropdown
'
,
_
.
bind
(
function
(
e
)
{
var
li
;
if
(
arguments
.
length
>
1
&&
arguments
[
1
]
instanceof
jQuery
.
Event
)
{
// when typing in cell editor
e
=
arguments
[
1
];
if
(
menuContainer
.
hasClass
(
'
open
'
))
{
if
(
e
.
keyCode
==
Common
.
UI
.
Keys
.
TAB
||
e
.
keyCode
==
Common
.
UI
.
Keys
.
RETURN
)
if
(
e
.
keyCode
==
Common
.
UI
.
Keys
.
TAB
||
e
.
keyCode
==
Common
.
UI
.
Keys
.
RETURN
&&
!
e
.
ctrlKey
&&
!
e
.
altKey
)
li
=
menuContainer
.
find
(
'
a.focus
'
).
closest
(
'
li
'
);
else
if
(
e
.
keyCode
==
Common
.
UI
.
Keys
.
UP
||
e
.
keyCode
==
Common
.
UI
.
Keys
.
DOWN
)
{
var
innerEl
=
menu
.
cmpEl
,
...
...
@@ -1340,12 +1337,19 @@ define([
}
}
else
if
(
e
.
keyCode
==
Common
.
UI
.
Keys
.
TAB
)
li
=
$
(
e
.
target
).
closest
(
'
li
'
);
if
(
li
)
{
if
(
li
.
length
>
0
)
li
.
click
();
Common
.
UI
.
Menu
.
Manager
.
hideAll
();
}
},
me
));
};
menu
.
render
(
menuContainer
);
menu
.
cmpEl
.
attr
({
tabindex
:
"
-1
"
});
menu
.
on
(
'
hide:after
'
,
function
()
{
if
(
Common
.
Utils
.
isIE
)
me
.
documentHolder
.
focus
();
});
}
var
coord
=
me
.
api
.
asc_getActiveCellCoord
(),
...
...
@@ -1355,9 +1359,14 @@ define([
menu
.
alignPosition
();
var
infocus
=
me
.
cellEditor
.
is
(
"
:focus
"
);
if
(
!
menu
.
isVisible
())
Common
.
UI
.
Menu
.
Manager
.
hideAll
();
_
.
delay
(
function
()
{
menu
.
show
();
if
(
menu
.
scroller
)
menu
.
scroller
.
scrollTop
(
0
);
if
(
!
menu
.
isVisible
())
menu
.
show
();
if
(
menu
.
scroller
)
{
menu
.
scroller
.
update
({
alwaysVisibleY
:
true
});
menu
.
scroller
.
scrollTop
(
0
);
}
if
(
infocus
)
{
me
.
cellEditor
.
focus
();
_
.
delay
(
function
()
{
...
...
apps/spreadsheeteditor/main/app/view/DocumentHolder.js
View file @
3c747fa3
...
...
@@ -482,8 +482,6 @@ define([
minScrollbarLength
:
40
,
alwaysVisibleY
:
true
});
}).
on
(
'
show:after
'
,
function
()
{
this
.
scroller
.
update
({
alwaysVisibleY
:
true
});
});
me
.
fireEvent
(
'
createdelayedelements
'
,
[
me
]);
...
...
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