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
c0c5b4ce
Commit
c0c5b4ce
authored
Jul 24, 2015
by
Jonathan Wilkes
Browse files
add Enter and Escape keybindings for iemgui dialog window
parent
158dfe1e
Changes
1
Show whitespace changes
Inline
Side-by-side
pd/nw/dialog_iemgui.html
View file @
c0c5b4ce
...
...
@@ -310,7 +310,6 @@ console.log("my working dire is " + pdgui.get_pwd());
// gui preset
pdgui
.
skin
.
apply
(
this
);
var
pd_object_callback
;
function
ok
()
{
...
...
@@ -573,6 +572,13 @@ function add_events(name) {
pdgui
.
remove_dialogwin
(
pd_object_callback
);
this
.
close
(
true
);
});
document
.
onkeydown
=
function
(
evt
)
{
if
(
evt
.
keyCode
===
13
)
{
// enter
ok
();
}
else
if
(
evt
.
keyCode
===
27
)
{
// escape
cancel
();
}
};
}
</script>
...
...
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