szurubooru/client/js/util/search.js
rr- a69bdba63f client/build: ditch arrayToObject
UglifyJS seems to have troubles using it, I didn't want to investigate
it too much as it's just a syntactic sugar used in about 4 places so I
just removed it altogether
2016-09-29 11:16:55 +02:00

17 lines
435 B
JavaScript

'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,
};