mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +01:00
replace old event.control and event.meta by event.ctrlKey and event.metaKey
This commit is contained in:
parent
ac425c6f0d
commit
6176ac9558
@ -321,7 +321,7 @@ mindplot.Designer = new Class({
|
|||||||
var objects = model.getEntities();
|
var objects = model.getEntities();
|
||||||
_.each(objects, function(object) {
|
_.each(objects, function(object) {
|
||||||
// Disable all nodes on focus but not the current if Ctrl key isn't being pressed
|
// Disable all nodes on focus but not the current if Ctrl key isn't being pressed
|
||||||
if (!$defined(event) || (!event.control && !event.meta)) {
|
if (!$defined(event) || (!event.ctrlKey && !event.metaKey)) {
|
||||||
if (object.isOnFocus() && object != currentObject) {
|
if (object.isOnFocus() && object != currentObject) {
|
||||||
object.setOnFocus(false);
|
object.setOnFocus(false);
|
||||||
}
|
}
|
||||||
|
@ -67,7 +67,7 @@ mindplot.DragTopic = new Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
updateFreeLayout:function (event) {
|
updateFreeLayout:function (event) {
|
||||||
var isFreeEnabled = (event.meta && Browser.Platform.mac) || (event.control && !Browser.Platform.mac);
|
var isFreeEnabled = (event.metaKey && Browser.Platform.mac) || (event.ctrlKey && !Browser.Platform.mac);
|
||||||
if (this.isFreeLayoutOn() != isFreeEnabled) {
|
if (this.isFreeLayoutOn() != isFreeEnabled) {
|
||||||
var dragPivot = this._getDragPivot();
|
var dragPivot = this._getDragPivot();
|
||||||
dragPivot.setVisibility(!isFreeEnabled);
|
dragPivot.setVisibility(!isFreeEnabled);
|
||||||
|
@ -581,7 +581,7 @@ mindplot.Topic = new Class({
|
|||||||
if (!this.isReadOnly()) {
|
if (!this.isReadOnly()) {
|
||||||
// Disable topic selection of readOnly mode ...
|
// Disable topic selection of readOnly mode ...
|
||||||
var value = true;
|
var value = true;
|
||||||
if ((event.meta && Browser.Platform.mac) || (event.control && !Browser.Platform.mac)) {
|
if ((event.metaKey && Browser.Platform.mac) || (event.ctrlKey && !Browser.Platform.mac)) {
|
||||||
value = !this.isOnFocus();
|
value = !this.isOnFocus();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
Loading…
Reference in New Issue
Block a user