Desativar atalho único no quantum do firefox

5

É possível desativar um único atalho de teclado no quantum do firefox? Eu gostaria muito de desabilitar ctrl-n (ou pelo menos ser capaz de capturar e event.preventDefault() ) no firefox 57. As soluções anteriores usam complementos que não suportam o quantum do firefox.

    
por Marcel 28.11.2017 / 17:03

1 resposta

5

A substituição de keybinds existentes não é suportada no Firefox Quantum (ainda).

If a key combination is already used by the browser (for example, "Ctrl+Shift+R"), or by an existing add-on, then you can't override it. You will be allowed to define it, but your event handler will not be called when the user enters it.

Veja este relatório de erros para mais informações.

    
por 07.12.2017 / 14:29
yii\base\ErrorException
Copied! Copy Stacktrace Search Stackoverflow Search Google Error

PHP Core Warning – yii\base\ErrorException

PHP Startup: Unable to load dynamic library 'memcached.so' (tried: /usr/lib/php/20190902/memcached.so (/usr/lib/php/20190902/memcached.so: undefined symbol: igbinary_serialize), /usr/lib/php/20190902/memcached.so.so (/usr/lib/php/20190902/memcached.so.so: cannot open shared object file: No such file or directory))

$_GET = [
    'id' => '311234',
    'url' => 'disable-single-shortcut-in-firefox-quantum',
];

$_COOKIE = [
    'advanced-frontend' => 'knf33vdkln8j257ft9m74oijoh',
    '_csrf-frontend' => 'd09a25daebb34882a210fe89e1e57667ef69addb43f94ee18a35e9acea8207aca:2:{i:0;s:14:"_csrf-frontend";i:1;s:32:"ky6vGNz1C8jiwyBAQnRze1qb06wFb-Ja";}',
];

$_SESSION = [
    '__flash' => [],
];