in fact, remove shortcuts altogether - we're not using formatting yet,
and it's borking firefox
This commit is contained in:
+1
-29
@@ -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;
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user