From cc48b0da23604dc7a8da22c9aa6fed2345f14e53 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Mon, 1 Sep 2008 01:19:15 +0000 Subject: [PATCH] beep on gi without a count if there's no last input field --- content/buffer.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/content/buffer.js b/content/buffer.js index bb6f8bfb..c86eda61 100644 --- a/content/buffer.js +++ b/content/buffer.js @@ -319,8 +319,13 @@ liberator.Buffer = function () //{{{ "Focus last used input field", function (count) { - if (count < 1 && liberator.buffer.lastInputField) - liberator.buffer.lastInputField.focus(); + if (count < 1) + { + if (liberator.buffer.lastInputField) + liberator.buffer.lastInputField.focus(); + else + liberator.beep(); + } else { var first = liberator.buffer.evaluateXPath(