mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 14:08:11 +01:00
only allow g and G mapping in the MOW if scrollable
This commit is contained in:
@@ -646,10 +646,16 @@ function CommandLine() //{{{
|
|||||||
pass(event);
|
pass(event);
|
||||||
break;
|
break;
|
||||||
case "g":
|
case "g":
|
||||||
|
if (canScroll() >= 1)
|
||||||
multiline_output_widget.contentWindow.scrollTo(0, 0);
|
multiline_output_widget.contentWindow.scrollTo(0, 0);
|
||||||
|
else
|
||||||
|
pass(event);
|
||||||
break;
|
break;
|
||||||
case "G":
|
case "G":
|
||||||
|
if (canScroll() >= 1)
|
||||||
multiline_output_widget.contentWindow.scrollTo(0, multiline_output_widget.contentWindow.scrollMaxY);
|
multiline_output_widget.contentWindow.scrollTo(0, multiline_output_widget.contentWindow.scrollMaxY);
|
||||||
|
else
|
||||||
|
pass(event);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user