mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 22:27:55 +01:00
- Do not propagate some keyboard events.
This commit is contained in:
parent
1e5e11a309
commit
22d9f7a199
@ -60,20 +60,29 @@ mindplot.DesignerKeyboard = new Class({
|
|||||||
}
|
}
|
||||||
}.bind(this),
|
}.bind(this),
|
||||||
|
|
||||||
'delete':function () {
|
'delete':function (event) {
|
||||||
designer.deleteSelectedEntities();
|
designer.deleteSelectedEntities();
|
||||||
|
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
}.bind(this),
|
}.bind(this),
|
||||||
|
|
||||||
'enter':function () {
|
'enter':function () {
|
||||||
designer.createSiblingForSelectedNode();
|
designer.createSiblingForSelectedNode();
|
||||||
}.bind(this),
|
}.bind(this),
|
||||||
|
|
||||||
'insert':function () {
|
'insert':function (event) {
|
||||||
designer.createChildForSelectedNode();
|
designer.createChildForSelectedNode();
|
||||||
|
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
}.bind(this),
|
}.bind(this),
|
||||||
|
|
||||||
'tab':function () {
|
'tab':function (event) {
|
||||||
designer.createChildForSelectedNode();
|
designer.createChildForSelectedNode();
|
||||||
|
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
}.bind(this),
|
}.bind(this),
|
||||||
|
|
||||||
'-':function () { // "-" is a insert on several Browsers. Don't ask why ...
|
'-':function () { // "-" is a insert on several Browsers. Don't ask why ...
|
||||||
|
Loading…
Reference in New Issue
Block a user