]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make available listbox keys to viewer dialog
authorterencehill <piuntn@gmail.com>
Mon, 9 Aug 2010 20:04:38 +0000 (22:04 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 9 Aug 2010 20:04:38 +0000 (22:04 +0200)
qcsrc/menu/xonotic/dialog_multiplayer_screenshot_screenshotviewer.c

index d067db741da3b852908b78054d2bef0e63ed0236..706b426a72f83c2c38d39e9a04aa430c782e8d8b 100644 (file)
@@ -52,6 +52,12 @@ float XonoticScreenshotViewerDialog_keyDown(entity me, float key, float ascii, f
                        me.scrList.goScreenshot(me.scrList, +1);
                        return 1;
                default:
+                       if (me.scrList.keyDown(me.scrList, key, ascii, shift))
+                       {
+                               // keyDown has already changed the selected item
+                               me.scrList.goScreenshot(me.scrList, 0);
+                               return 1;
+                       }
                        return SUPER(XonoticScreenshotViewerDialog).keyDown(me, key, ascii, shift);
        }
 }