aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-04-12 09:10:31 +1200
committerArslaan Pathan <[email protected]>2026-04-12 09:10:31 +1200
commit380415f22a679d659673f7193b1289bcfd81fc24 (patch)
tree9d0539a5a31c8dcde3f684890225ea9c01c59acb /config.def.h
parent6b10fef121b3942bc1264c8d25408f0342ba9d1e (diff)
downloadcinnamon-browser-main.tar.xz
cinnamon-browser-main.zip
Scroll to top/scroll to bottom ^_^HEADmain
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 412ce46..67712fb 100644
--- a/config.def.h
+++ b/config.def.h
@@ -78,6 +78,10 @@ static void _kbd_scroll(Cinnamon* cinnamon, void* arg) {
keyval = GDK_KEY_Up;
} else if (strcmp((const char*)arg, "down") == 0) {
keyval = GDK_KEY_Down;
+ } else if (strcmp((const char*)arg, "top") == 0) {
+ keyval = GDK_KEY_Home;
+ } else if (strcmp((const char*)arg, "bottom") == 0) {
+ keyval = GDK_KEY_End;
} else {
return;
}
@@ -199,6 +203,8 @@ static const Keybind keybinds[] = {
{ "k", &_kbd_scroll, "up" },
{ "h", &_kbd_scroll, "left" },
{ "l", &_kbd_scroll, "right" },
+ { "g", &_kbd_scroll, "top" },
+ { "<S-g>", &_kbd_scroll, "bottom" },
{ "r", &_kbd_reload, NULL },
{ "f", &_kbd_follow, NULL },
{ "<S-j>", &_kbd_next_tab, NULL },