blob: c540c2f1840b47da8726b36faaa96ec14eb746a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
"use strict";
const misc = require("./misc.js");
const keyboard = require("../util/keyboard.js");
const views = require("./views.js");
function searchInputNodeFocusHelper(inputNode) {
keyboard.bind("q", () => {
inputNode.focus();
inputNode.setSelectionRange(
inputNode.value.length,
inputNode.value.length
);
});
}
module.exports = {
searchInputNodeFocusHelper: searchInputNodeFocusHelper,
};
|
© 2015 - 2026 Jakob L. Kreuze