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
f415118e
Commit
f415118e
authored
Jul 06, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Menu Component: set atttibute "oo_editor_input" for getting focus and keyboard events.
parent
4a2fee85
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
apps/common/main/lib/component/Menu.js
apps/common/main/lib/component/Menu.js
+1
-1
apps/spreadsheeteditor/main/app/view/DocumentHolder.js
apps/spreadsheeteditor/main/app/view/DocumentHolder.js
+2
-0
No files found.
apps/common/main/lib/component/Menu.js
View file @
f415118e
...
...
@@ -147,7 +147,7 @@ define([
},
template
:
_
.
template
([
'
<ul class="dropdown-menu <%= options.cls %>" style="<%= options.style %>" role="menu"></ul>
'
'
<ul class="dropdown-menu <%= options.cls %>"
oo_editor_input="true"
style="<%= options.style %>" role="menu"></ul>
'
].
join
(
''
)),
initialize
:
function
(
options
)
{
...
...
apps/spreadsheeteditor/main/app/view/DocumentHolder.js
View file @
f415118e
...
...
@@ -566,6 +566,7 @@ define([
cyclic
:
false
,
items
:
[]
}).
on
(
'
render:after
'
,
function
(
mnu
)
{
mnu
.
cmpEl
.
removeAttr
(
'
oo_editor_input
'
).
attr
(
'
oo_editor_keyboard
'
,
true
);
this
.
scroller
=
new
Common
.
UI
.
Scroller
({
el
:
$
(
this
.
el
).
find
(
'
.dropdown-menu
'
),
useKeyboard
:
this
.
enableKeyEvents
&&
!
this
.
handleSelect
,
...
...
@@ -581,6 +582,7 @@ define([
cyclic
:
false
,
items
:
[]
}).
on
(
'
render:after
'
,
function
(
mnu
)
{
mnu
.
cmpEl
.
removeAttr
(
'
oo_editor_input
'
).
attr
(
'
oo_editor_keyboard
'
,
true
);
this
.
scroller
=
new
Common
.
UI
.
Scroller
({
el
:
$
(
this
.
el
).
find
(
'
.dropdown-menu
'
),
useKeyboard
:
this
.
enableKeyEvents
&&
!
this
.
handleSelect
,
...
...
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