Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GIP RENATER
switch-wayf
Commits
d6496c79
Commit
d6496c79
authored
Jan 16, 2012
by
haemmer
Browse files
After selecting an entry, the focus is moved on the submit button
parent
d9541728
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/improvedDropDown.js
View file @
d6496c79
...
@@ -182,7 +182,10 @@ function getTextElement(sourceElement, imgElement) {
...
@@ -182,7 +182,10 @@ function getTextElement(sourceElement, imgElement) {
switch
(
e
.
which
)
{
switch
(
e
.
which
)
{
case
KEY_ESCAPE
:
closeListUndoTyping
(
thisTextElement
);
break
;
case
KEY_ESCAPE
:
closeListUndoTyping
(
thisTextElement
);
break
;
case
KEY_TAB
:
break
;
case
KEY_TAB
:
break
;
case
KEY_ENTER
:
break
;
case
KEY_ENTER
:
// Move focus on submit button
$
(
'
[type="submit"]
'
).
focus
();
break
;
case
KEY_DOWNARROW
:
break
;
case
KEY_DOWNARROW
:
break
;
case
KEY_UPARROW
:
break
;
case
KEY_UPARROW
:
break
;
case
KEY_LEFTARROW
:
break
;
case
KEY_LEFTARROW
:
break
;
...
...
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