Fix Firefox meta keyboard bug.

This commit is contained in:
Paulo Gustavo Veiga 2012-04-02 04:15:08 -03:00
parent 9681b9016d
commit 9f0557b851

View File

@ -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) {