I was looking into the code to see if there's any keyboard shortcut for the lightning mode, and I saw that there was a ctrl+L somewhere, but there are lots of conditions to it, state=second_submit for example, and this shortcut at least on my firefox sends me to the URL input box. Even if all conditions are met, there's a bug since it's not passing the event into the lightning_clicked method.
I changed it a bit just so I could have F8 as my shortcut no matter the state:
function handle_retype_hotkey(event){
if (event.key === 'F8') {
event.preventDefault();
event.stopPropagation();
lightning_clicked(event);
} else if (state !== 'first_submit') {
if (!document.querySelector('#wkofs_doublecheck') && (event.target === input || event.target === document.body)) {
if ((event.which === 27 || event.which === 8)) {
toggle_result('retype');
event.preventDefault();
event.stopPropagation();
}
}
}
};
I was looking into the code to see if there's any keyboard shortcut for the lightning mode, and I saw that there was a ctrl+L somewhere, but there are lots of conditions to it, state=second_submit for example, and this shortcut at least on my firefox sends me to the URL input box.
Even if all conditions are met, there's a bug since it's not passing the event into the lightning_clicked method.
I changed it a bit just so I could have F8 as my shortcut no matter the state: