mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-12-01 18:04:58 +01:00
- Fix meta/control seleccion
This commit is contained in:
parent
81f9ffa5e9
commit
334206ab19
@ -197,7 +197,7 @@ mindplot.Designer = new Class({
|
|||||||
var objects = model.getObjects();
|
var objects = model.getObjects();
|
||||||
objects.forEach(function(object) {
|
objects.forEach(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.ctrlKey && !event.metaKey)) {
|
if (!$defined(event) || (!event.control && !event.meta)) {
|
||||||
if (object.isOnFocus() && object != currentObject) {
|
if (object.isOnFocus() && object != currentObject) {
|
||||||
object.setOnFocus(false);
|
object.setOnFocus(false);
|
||||||
}
|
}
|
||||||
|
@ -693,7 +693,7 @@ mindplot.Topic = new Class({
|
|||||||
// Focus events ...
|
// Focus events ...
|
||||||
var mouseDown = function(event) {
|
var mouseDown = function(event) {
|
||||||
var value = true;
|
var value = true;
|
||||||
if ((event.metaKey && Browser.Platform.mac) || (event.ctrlKey && !Browser.Platform.mac)) {
|
if ((event.meta && Browser.Platform.mac) || (event.control && !Browser.Platform.mac)) {
|
||||||
value = !this.isOnFocus();
|
value = !this.isOnFocus();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
@ -246,7 +246,7 @@ mindplot.widget.Menu = new Class({
|
|||||||
if (saveElem) {
|
if (saveElem) {
|
||||||
this.addButton('save', false, false, function() {
|
this.addButton('save', false, false, function() {
|
||||||
this._save(saveElem, designer, true);
|
this._save(saveElem, designer, true);
|
||||||
});
|
}.bind(this));
|
||||||
|
|
||||||
if (!readOnly) {
|
if (!readOnly) {
|
||||||
// To prevent the user from leaving the page with changes ...
|
// To prevent the user from leaving the page with changes ...
|
||||||
|
Loading…
Reference in New Issue
Block a user