Commit 0aa7367d authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix #278: pass "keydown" keycode "46" to Pd as "127" (i.e., the "Delete" key)

parent 92d41f4e
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment