Merge branch 'release/loaders' of git.startinblox.com:applications/sib-app into feature/hubl-673
This commit is contained in:
commit
d8e1f29578
@ -5,7 +5,7 @@ const HublSearchUsers = widgetFactory(
|
|||||||
`<input
|
`<input
|
||||||
data-holder
|
data-holder
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
placeholder="\${label}"
|
placeholder="\${label} (^ + K)"
|
||||||
type="text"
|
type="text"
|
||||||
name="\${name}"
|
name="\${name}"
|
||||||
value="\${escapedValue}"
|
value="\${escapedValue}"
|
||||||
|
10
src/scripts/keyboard-shortcuts.js
Normal file
10
src/scripts/keyboard-shortcuts.js
Normal 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();
|
||||||
|
}
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user