1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 18:14:12 +01:00

Use real key bindings in MOW mode, and also restore the strange key passing behavior of yore. Closes issue #217.

This commit is contained in:
Kris Maglione
2010-12-28 21:55:30 -05:00
parent cd21743661
commit ca4b3a03c9
6 changed files with 100 additions and 135 deletions

View File

@@ -833,6 +833,11 @@ var Hints = Module("hints", {
*/
show: function show(minor, opts) {
opts = opts || {};
// Hack.
if (!opts.window && modes.main == modes.OUTPUT_MULTILINE)
opts.window = commandline.widgets.multilineOutput.contentWindow;
this._hintMode = this._hintModes[minor];
dactyl.assert(this._hintMode);
@@ -1034,7 +1039,7 @@ var Hints = Module("hints", {
Mode: Struct("name", "prompt", "action", "tags", "filter")
}, {
mappings: function () {
var myModes = config.browserModes;
var myModes = config.browserModes.concat(modes.OUTPUT_MULTILINE);
mappings.add(myModes, ["f"],
"Start QuickHint mode",
function () { hints.show("o"); });