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
Rishabh Gupta
purr-data
Commits
0aa7367d
Commit
0aa7367d
authored
Mar 08, 2017
by
Jonathan Wilkes
Browse files
fix #278: pass "keydown" keycode "46" to Pd as "127" (i.e., the "Delete" key)
parent
92d41f4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/pdgui.js
View file @
0aa7367d
...
...
@@ -268,12 +268,13 @@ exports.keydown = function(cid, evt) {
hack
=
null
,
// hack for unprintable ascii codes
cmd_or_ctrl
switch
(
key_code
)
{
case
8
:
case
8
:
// backspace
case
9
:
case
10
:
case
27
:
//case 32:
case
127
:
hack
=
key_code
;
break
;
case
46
:
hack
=
127
;
break
;
// some platforms report 46 for Delete
case
37
:
hack
=
add_keymods
(
"
Left
"
,
evt
);
break
;
case
38
:
hack
=
add_keymods
(
"
Up
"
,
evt
);
break
;
case
39
:
hack
=
add_keymods
(
"
Right
"
,
evt
);
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