preven default for control_shift_c to make copyadd work on linux, Chrome opens Inspect Element otherwise

This commit is contained in:
j 2013-07-15 11:33:17 +00:00
parent c0eff8edf3
commit 5549377541

View file

@ -42,6 +42,10 @@ Ox.Keyboard = (function() {
Ox.UI.elements[id].triggerEvent('key_' + key); Ox.UI.elements[id].triggerEvent('key_' + key);
}); });
// Don't open Chrome Inspect Element, used for copyadd
if (bound.length && key == 'control_shift_c') {
event.preventDefault();
}
// Firefox opens quick find on slash and quick link find on quote otherwise // Firefox opens quick find on slash and quick link find on quote otherwise
if (keyName == 'slash' || keyName == 'quote') { if (keyName == 'slash' || keyName == 'quote') {
event.preventDefault(); event.preventDefault();