Fixed focus grabbing.

This commit is contained in:
Pachira 2024-02-11 17:15:22 +00:00
parent a379cb08ad
commit c0246909c0

View file

@ -122,7 +122,10 @@ Umi.UI.Hooks = (function() {
window.addEventListener('keydown', function(ev) {
if(!ev.target.matches('input, textarea'))
if((ev.ctrlKey && ev.key !== 'v') || ev.altKey)
return;
if(!ev.target.matches('input, textarea, select'))
$i('umi-msg-text').focus();
});