fix(doc-search): Ignore keypress on input elements
This commit is contained in:
parent
f8167b4364
commit
aa22287c72
1 changed files with 3 additions and 0 deletions
|
|
@ -411,6 +411,9 @@ frappe.setup_search = function (target, search_scope) {
|
|||
let offsetIndex = 0;
|
||||
|
||||
$(document).on('keypress', e => {
|
||||
if ($(e.target).is('textarea, input, select')) {
|
||||
return;
|
||||
}
|
||||
if (e.key === '/') {
|
||||
e.preventDefault();
|
||||
$input.focus();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue