Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonathan Wilkes
purr-data
Commits
437a2a9a
Commit
437a2a9a
authored
Apr 11, 2021
by
Prakhar Agarwal
🎯
Browse files
added browser default zoom out feature
parent
f736712d
Changes
3
Hide whitespace changes
Inline
Side-by-side
emscripten/project/purr-data/components/menu/menu.html
View file @
437a2a9a
...
...
@@ -37,7 +37,6 @@
<li
id=
"menu-view"
>
<ul
class=
"rounded shadow"
>
<li
id=
"view-zoomin"
></li>
<li
id=
"view-zoomout"
></li>
<li
id=
"view-zoomreset"
></li>
<li
id=
"view-fullscreen"
></li>
</ul>
...
...
emscripten/project/purr-data/components/menu/menu.js
View file @
437a2a9a
...
...
@@ -116,12 +116,6 @@ function menu_options(type, w, cid) {
modifiers
:
pdbundle
.
shortcuts
.
menu
.
zoomin_web
.
modifiers
,
tooltip
:
l
(
"
menu.zoomin_tt
"
)
},
"
view-zoomout
"
:
{
label
:
l
(
"
menu.zoomout
"
),
key
:
pdbundle
.
shortcuts
.
menu
.
zoomout_web
.
key
,
modifiers
:
pdbundle
.
shortcuts
.
menu
.
zoomout_web
.
modifiers
,
tooltip
:
l
(
"
menu.zoomout_tt
"
)
},
"
view-zoomreset
"
:
{
label
:
l
(
"
menu.zoomreset
"
),
key
:
pdbundle
.
shortcuts
.
menu
.
zoomreset_web
.
key
,
...
...
@@ -436,6 +430,12 @@ function menu_options(type, w, cid) {
},
// View section
"
view-zoomout
"
:
{
label
:
l
(
"
menu.zoomout
"
),
key
:
pdbundle
.
shortcuts
.
menu
.
zoomout_web
.
key
,
modifiers
:
pdbundle
.
shortcuts
.
menu
.
zoomout_web
.
modifiers
,
tooltip
:
l
(
"
menu.zoomout_tt
"
)
},
...
view_base
,
// View entries
...
...
emscripten/project/purr-data/utils/actions.js
View file @
437a2a9a
...
...
@@ -149,8 +149,13 @@ function add_shortcuts(cid){
// Add key
shortcut
+=
e
.
key
.
toUpperCase
();
if
(
window
.
shortkeys
[
cid
].
hasOwnProperty
(
shortcut
)){
e
.
preventDefault
()
window
.
shortkeys
[
cid
][
shortcut
].
click
();
switch
(
shortcut
)
{
case
"
Ctrl+-
"
:
break
;
default
:
e
.
preventDefault
()
window
.
shortkeys
[
cid
][
shortcut
].
click
();
}
}
}
}
...
...
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