- if(key == K_PGUP || key == K_KP_PGUP)
- me.scrollPosTarget = max(me.scrollPosTarget - 0.5, 0);
- else if(key == K_PGDN || key == K_KP_PGDN)
- me.scrollPosTarget = min(me.scrollPosTarget + 0.5, me.nItems * me.itemHeight - 1);
- else if(key == K_UPARROW || key == K_KP_UPARROW)
- me.scrollPosTarget = max(me.scrollPosTarget - me.itemHeight, 0);
- else if(key == K_DOWNARROW || key == K_KP_DOWNARROW)
- me.scrollPosTarget = min(me.scrollPosTarget + me.itemHeight, me.nItems * me.itemHeight - 1);
- else
- return SUPER(XonoticCreditsList).keyDown(me, key, ascii, shift);
-
- return 1;
+ return SUPER(XonoticCreditsList).keyDown(me, key, ascii, shift);