1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-24 07:25:45 +01:00

Add base FIND mode.

This commit is contained in:
Kris Maglione
2011-01-18 18:46:56 -05:00
parent 551f777c22
commit 86b8014081

View File

@@ -159,16 +159,22 @@ var RangeFinder = Module("rangefinder", {
} }
}, { }, {
}, { }, {
/* Must come before commandline. */
modes: function (dactyl, modules, window) { modes: function (dactyl, modules, window) {
const { modes } = modules; const { modes } = modules;
/* Must come before commandline. */ modes.addMode("FIND", {
extended: true,
description: "Find mode, active when typing search input"
});
modes.addMode("FIND_FORWARD", { modes.addMode("FIND_FORWARD", {
extended: true, extended: true,
description: "Forward Find mode, active when typing search input" description: "Forward Find mode, active when typing search input",
bases: [modes.FIND]
}, { history: "search" }); }, { history: "search" });
modes.addMode("FIND_BACKWARD", { modes.addMode("FIND_BACKWARD", {
extended: true, extended: true,
description: "Backward Find mode, active when typing search input" description: "Backward Find mode, active when typing search input",
bases: [modes.FIND]
}, { history: "search" }); }, { history: "search" });
}, },
commandline: function (dactyl, modules, window) { commandline: function (dactyl, modules, window) {