1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 00:02:27 +01:00

beep on gi without a count if there's no last input field

This commit is contained in:
Doug Kearns
2008-09-01 01:19:15 +00:00
parent 510de4ef93
commit cc48b0da23

View File

@@ -319,8 +319,13 @@ liberator.Buffer = function () //{{{
"Focus last used input field", "Focus last used input field",
function (count) function (count)
{ {
if (count < 1 && liberator.buffer.lastInputField) if (count < 1)
liberator.buffer.lastInputField.focus(); {
if (liberator.buffer.lastInputField)
liberator.buffer.lastInputField.focus();
else
liberator.beep();
}
else else
{ {
var first = liberator.buffer.evaluateXPath( var first = liberator.buffer.evaluateXPath(