dont open firefox quick find, fixes #1258

This commit is contained in:
j 2013-02-19 12:53:08 +00:00
parent 6a17a94603
commit 8dea961e09

View file

@ -40,6 +40,11 @@ Ox.Keyboard = (function() {
bound.forEach(function(id) {
Ox.UI.elements[id].triggerEvent('key_' + key);
});
// Firefox opens quick find on slash and quick link find on quote otherwise
if (keyName == 'slash' || keyName == 'quote') {
event.preventDefault();
}
}
if (focused !== null && bound.indexOf(focused) == -1) {
$focused.triggerEvent('key_' + key);