diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-04-15 18:20:50 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-04-15 18:20:50 +0200 |
commit | 5737cf1d24c868a55eafc59a51c000dc7f4f63f6 (patch) | |
tree | ef9c8e8fa95723b586fa882b1222e0daac91ad3d /fbpdf.c | |
parent | 168c57b57f2fb4440943d4e672dee4ca34f060b8 (diff) | |
download | fbida-5737cf1d24c868a55eafc59a51c000dc7f4f63f6.tar.gz |
use xkbcommon
Diffstat (limited to 'fbpdf.c')
-rw-r--r-- | fbpdf.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -382,41 +382,41 @@ int main(int argc, char *argv[]) kbd_read(key, sizeof(key), &keycode, &keymod); switch (keycode) { - case KEY_ESC: - case KEY_Q: + case XKB_KEY_Escape: + case XKB_KEY_Q: quit = true; break; - case KEY_PAGEUP: + case XKB_KEY_Page_Up: if (index > 0) { index--; newpage = true; } break; - case KEY_PAGEDOWN: + case XKB_KEY_Page_Down: if (index+1 < poppler_document_get_n_pages(doc)) { index++; newpage = true; } break; - case KEY_UP: + case XKB_KEY_Up: page_move(0, 0.2); break; - case KEY_DOWN: + case XKB_KEY_Down: page_move(0, -0.2); break; - case KEY_LEFT: + case XKB_KEY_Left: page_move(0.2, 0); break; - case KEY_RIGHT: + case XKB_KEY_Right: page_move(-0.2, 0); break; - case KEY_KPMINUS: + case XKB_KEY_KP_Subtract: page_scale(0.7); break; - case KEY_KPPLUS: + case XKB_KEY_KP_Add: page_scale(1.5); break; - case KEY_SPACE: + case XKB_KEY_space: if (ty > gfx->vdisplay - sh) { page_move(0, -0.75); break; |