in fact, remove shortcuts altogether - we're not using formatting yet,

and it's borking firefox
This commit is contained in:
Tyler Renelle
2012-09-04 14:23:57 -04:00
parent 8930be1356
commit 0391cee8a5
2 changed files with 1 additions and 50 deletions
+1 -29
View File
@@ -328,35 +328,7 @@ ready(function(model) {
exports.endOfDayTally = function(e, el) {
return scoring.tally(model);
};
exports.updateSchema = function(e, el) {
return exports.updateSchema = function(e, el) {
return schema.updateSchema(model);
};
return exports.shortcuts = function(e) {
var code, command;
if (!(e.metaKey || e.ctrlKey)) {
return;
}
code = e.which;
if (!(command = ((function() {
switch (code) {
case 66:
return 'bold';
case 73:
return 'italic';
case 32:
return 'removeFormat';
case 220:
return 'removeFormat';
default:
return null;
}
})()))) {
return;
}
document.execCommand(command, false, null);
if (e.preventDefault) {
e.preventDefault();
}
return false;
};
});