mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 13:48:00 +01:00
beep when frame motion bounds are exceeded
This commit is contained in:
@@ -213,8 +213,13 @@ function Buffer() //{{{
|
|||||||
next++;
|
next++;
|
||||||
|
|
||||||
if (next > frames.length - 1)
|
if (next > frames.length - 1)
|
||||||
|
{
|
||||||
|
if (current == frames.length - 1)
|
||||||
|
vimperator.beep(); // still allow the frame indicator to be activated
|
||||||
|
|
||||||
next = frames.length - 1;
|
next = frames.length - 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (count > 1)
|
if (count > 1)
|
||||||
@@ -223,8 +228,13 @@ function Buffer() //{{{
|
|||||||
next--;
|
next--;
|
||||||
|
|
||||||
if (next < 0)
|
if (next < 0)
|
||||||
|
{
|
||||||
|
if (current == 0)
|
||||||
|
vimperator.beep(); // still allow the frame indicator to be activated
|
||||||
|
|
||||||
next = 0;
|
next = 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// focus next frame and scroll into view
|
// focus next frame and scroll into view
|
||||||
frames[next].focus();
|
frames[next].focus();
|
||||||
|
|||||||
Reference in New Issue
Block a user