Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
094cb794
Commit
094cb794
authored
Mar 06, 2015
by
Mathieu Giraud
Browse files
shortcut.js: numeric keypad 0-9, change preset
parent
2647300e
Changes
1
Show whitespace changes
Inline
Side-by-side
browser/js/shortcut.js
View file @
094cb794
...
@@ -92,6 +92,14 @@ Shortcut.prototype = {
...
@@ -92,6 +92,14 @@ Shortcut.prototype = {
if
(
e
.
shiftKey
||
e
.
metakey
)
db
.
reload
()
if
(
e
.
shiftKey
||
e
.
metakey
)
db
.
reload
()
break
;
break
;
default
:
default
:
if
((
key
>=
96
)
&&
(
key
<=
105
))
{
// Numeric keypad, 0-9
var
select_preset
=
document
.
getElementById
(
"
select_preset
"
)
select_preset
.
selectedIndex
=
key
-
95
try
{
sp
.
changePreset
(
select_preset
)
}
catch
(
err
)
{
}
// There can be an error if the preset does not exist
}
}
}
}
}
...
...
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