Commit 4f768e0c authored by Jonathan Wilkes's avatar Jonathan Wilkes

ported canvas "reselect" message

parent c589f021
......@@ -185,6 +185,9 @@ var canvas_events = (function() {
var my_char_code = pdgui.get_char_code(evt.keyCode);
pdgui.gui_canvas_sendkey(name, 0, evt, my_char_code);
// pdgui.gui_post("keyup time: charcode is: " + my_char_code);
if (evt.keyCode === 13 && evt.ctrlKey) {
pdgui.pdsend(name + " reselect");
}
evt.stopPropagation();
evt.preventDefault();
},
......@@ -225,6 +228,11 @@ var canvas_events = (function() {
text_keyup: function(evt) {
evt.stopPropagation();
//evt.preventDefault();
// ctrl-Enter to reselect
if (evt.keyCode === 13 && evt.ctrlKey) {
canvas_events.set_obj();
pdgui.pdsend(name + " reselect");
}
return false;
},
text_keypress: function(evt) {
......@@ -619,8 +627,6 @@ function nw_create_patch_window_menus (name) {
click: function (evt) {
if (canvas_events.get_state() === 'normal') {
pdgui.pdsend(name + " selectall");
} else {
pdgui.gui_post("fuck butts");
}
},
tooltip: l('menu.selectall_tt'),
......
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