Capture meta+- keys.

This commit is contained in:
Paulo Gustavo Veiga 2012-11-12 22:27:42 -03:00
parent 8de31d9edc
commit c1318e496c

View File

@ -238,6 +238,35 @@ mindplot.DesignerKeyboard = new Class({
designer.selectAll(); designer.selectAll();
}, },
'meta+=':function (event) {
event.preventDefault();
event.stopPropagation();
designer.zoomIn();
},
'meta+-':function (event) {
event.preventDefault();
event.stopPropagation();
designer.zoomOut();
},
'ctrl++':function (event) {
event.preventDefault();
event.stopPropagation();
designer.zoomIn();
},
'ctrl+-':function (event) {
event.preventDefault();
event.stopPropagation();
designer.zoomOut();
},
'right':function (event) { 'right':function (event) {
var node = model.selectedTopic(); var node = model.selectedTopic();
if (node) { if (node) {