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:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user