mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
Fix #386: add hintdelay setting
As a bonus, move glacambre's goal posts
This commit is contained in:
parent
20d8ec0309
commit
aaa0016fc5
2 changed files with 2 additions and 2 deletions
|
@ -286,6 +286,7 @@ const DEFAULTS = o({
|
|||
hintfiltermode: "simple", // "simple", "vimperator", "vimperator-reflow"
|
||||
hintnames: "short",
|
||||
hintuppercase: "true",
|
||||
hintdelay: "300",
|
||||
|
||||
// Controls whether the page can focus elements for you via js
|
||||
// Remember to also change browser.autofocus (autofocusing elements via
|
||||
|
|
|
@ -605,8 +605,7 @@ export function hintSave(hintType: HintSaveType, saveAs: boolean) {
|
|||
function selectFocusedHint() {
|
||||
logger.debug("Selecting hint.", state.mode)
|
||||
const focused = modeState.focusedHint
|
||||
reset()
|
||||
focused.select()
|
||||
setTimeout(_=>{reset(); focused.select()},config.get("hintdelay"))
|
||||
}
|
||||
|
||||
import { addListener, attributeCaller } from "./messaging"
|
||||
|
|
Loading…
Add table
Reference in a new issue