Merge branch 'release/loaders' of git.startinblox.com:applications/sib-app into feature/hubl-673

This commit is contained in:
gaelle morin 2020-09-02 16:14:08 +02:00
commit d8e1f29578
No known key found for this signature in database
GPG Key ID: 028426702B95CF9C
2 changed files with 11 additions and 1 deletions

View File

@ -5,7 +5,7 @@ const HublSearchUsers = widgetFactory(
`<input
data-holder
autocomplete="off"
placeholder="\${label}"
placeholder="\${label} (^ + K)"
type="text"
name="\${name}"
value="\${escapedValue}"

View File

@ -0,0 +1,10 @@
document.addEventListener("keydown", function (e) {
/*
CTRL + K : Focus on the user search
Keycode 75
*/
if(e.ctrlKey && e.which == 75) {
document.querySelector('hubl-search-users > input').focus();
e.preventDefault();
}
});