Fixed focus grabbing.
This commit is contained in:
parent
a379cb08ad
commit
c0246909c0
1 changed files with 4 additions and 1 deletions
|
@ -122,7 +122,10 @@ Umi.UI.Hooks = (function() {
|
||||||
|
|
||||||
|
|
||||||
window.addEventListener('keydown', function(ev) {
|
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();
|
$i('umi-msg-text').focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue