MV (Solved) Use left / right keys, instead of pageup / pagedown in choice list

Hey folks. I made a large Choice list. It will have potentially 100+ choices. It works great!

If you want to speed up or down the list, you can use pageup and pagedown keys by default in RPG Maker MV.
I'd like to allow the user to press left and right keys, in addition to pageup / pagedown to jump up and down the list.

Any ideas how I can allow this?
This might work (untested):
JavaScript:
/*:
 * @target MV MZ
 * @plugindesc Add left/right = page up/down for Show Choices.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/172940/
 * @help Free to use and/or modify for any project, no credit required.
 */
// Override - redirect cursor left/right to page up/down on trigger
Window_ChoiceList.prototype.cursorLeft = function(triggered) {
    if (triggered) this.cursorPageup();
};
Window_ChoiceList.prototype.cursorRight = function(triggered) {
    if (triggered) this.cursorPagedown();
};
Thanks this worked!
I adapted it to work for my custom command window too.
Great! 😂

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-use-left-right-keys-instead-of-pageup-pagedown-in-choice-list.172940/