mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 22:27:55 +01:00
Fix Firefox meta keyboard bug.
This commit is contained in:
parent
9681b9016d
commit
9f0557b851
@ -24,7 +24,7 @@ mindplot.DesignerKeyboard = new Class({
|
|||||||
this._instance.activate();
|
this._instance.activate();
|
||||||
},
|
},
|
||||||
|
|
||||||
getInstance: function(){
|
getInstance: function() {
|
||||||
return this._instance;
|
return this._instance;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -224,7 +224,7 @@ mindplot.DesignerKeyboard = new Class({
|
|||||||
|
|
||||||
$(document).addEvent('keydown', function(event) {
|
$(document).addEvent('keydown', function(event) {
|
||||||
|
|
||||||
// Convert key to mootool keyboard event format...
|
// Convert key to mootools keyboard event format...
|
||||||
var keys = [];
|
var keys = [];
|
||||||
modifiers.each(function(mod) {
|
modifiers.each(function(mod) {
|
||||||
if (event[mod]) keys.push(mod);
|
if (event[mod]) keys.push(mod);
|
||||||
@ -243,7 +243,7 @@ mindplot.DesignerKeyboard = new Class({
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If it's not registered, let's
|
// If it's not registered, let's
|
||||||
if (!isRegistered && !excludes.contains(key) && !excludes.contains(event.key) && 'meta+[' != key) {
|
if (!isRegistered && !excludes.contains(key) && !excludes.contains(event.key) && 'meta+[' != key && 'meta+à' != key) {
|
||||||
var nodes = designer.getModel().filterSelectedTopics();
|
var nodes = designer.getModel().filterSelectedTopics();
|
||||||
if (nodes.length > 0) {
|
if (nodes.length > 0) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user