Package: zathura
Version: 0.2.1-1
Severity: minor
Tags: patch

It's currently not possible to map Home or End keys in zathurarc. I expect
those keys to go to the first/last respectively, but if you cannot map them
you cannot do much. This stems actually from libgirara, but since zathura is
basically the only user of this library, I'm filing the bug against it.

Fixing is easy though, see the attached patch for girara-0.1.4.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (800, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages zathura depends on:
ii  libc6             2.13-37
ii  libcairo2         1.12.2-2
ii  libgirara-gtk2-1  0.1.4-1
ii  libglib2.0-0      2.33.12+really2.32.4-3
ii  libgtk2.0-0       2.24.10-2
ii  libpoppler-glib8  0.18.4-3
ii  libsqlite3-0      3.7.14.1-1

zathura recommends no packages.
diff -rud girara-0.1.4.Orig/commands.c girara-0.1.4/commands.c
--- girara-0.1.4.Orig/commands.c	2012-11-20 16:23:21.978627657 +0100
+++ girara-0.1.4/commands.c	2012-11-20 16:24:01.482823436 +0100
@@ -47,6 +47,8 @@
     {"Left",      GDK_KEY_Left},
     {"PageDown",  GDK_KEY_Page_Down},
     {"PageUp",    GDK_KEY_Page_Up},
+    {"Home",      GDK_KEY_Home},
+    {"End",       GDK_KEY_End},
     {"Return",    GDK_KEY_Return},
     {"Right",     GDK_KEY_Right},
     {"Space",     GDK_KEY_space},
diff -rud girara-0.1.4.Orig/shortcuts.c girara-0.1.4/shortcuts.c
--- girara-0.1.4.Orig/shortcuts.c	2012-11-20 16:23:21.978627657 +0100
+++ girara-0.1.4/shortcuts.c	2012-11-20 16:23:47.290752998 +0100
@@ -489,6 +489,8 @@
     {"Left",      GDK_KEY_Left},
     {"PageDown",  GDK_KEY_Page_Down},
     {"PageUp",    GDK_KEY_Page_Up},
+    {"Home",      GDK_KEY_Home},
+    {"End",       GDK_KEY_End},
     {"Return",    GDK_KEY_Return},
     {"Right",     GDK_KEY_Right},
     {"Space",     GDK_KEY_space},

Reply via email to