MV Issue with processing button press

Code:
Window_PartySelect.prototype.processPageup = function() {
*code
}
The function above works, but the function below does not. Anyone knows why the function below does not work?
Code:
Window_PartyList.prototype.processPageup = function() {
*code
}

I am editing the Yanfly_PartySystem-Plugin.

The Code below is probably the reason why the Window_PartySelect function works, because when I entered "//" before the pageUp and PageDown bindings the Window_PartySelect.prototype.processPageup = function() stopped working.
Code:
Scene_Party.prototype.createPartyWindow = function() {
    this._partyWindow = new Window_PartySelect(this._commandWindow);
    if (this._helpWindow) this._partyWindow.setHelpWindow(this._helpWindow);
    this._partyWindow.setHandler('ok',       this.onPartyOk.bind(this));
    this._partyWindow.setHandler('cancel',   this.onPartyCancel.bind(this));
    this._partyWindow.setHandler('pageup',   this.onPartyPageUp.bind(this));         
    this._partyWindow.setHandler('pagedown', this.onPartyPageDown.bind(this));
    this.addWindow(this._partyWindow);
};

The following Code is necessary, too:
Code:
Scene_Party.prototype.onPartyPageUp = function() {
}

Scene_Party.prototype.onPartyPageDown = function() {
}

And the following Code fixes my problem! 🙂:
Code:
Scene_Party.prototype.createListWindow = function() {
    this._listWindow = new Window_PartyList(this._partyWindow);
    if (this._helpWindow) this._listWindow.setHelpWindow(this._helpWindow);
    this._listWindow.setHandler('ok',     this.onListOk.bind(this));
    this._listWindow.setHandler('cancel', this.onListCancel.bind(this));
     this._listWindow.setHandler('pageup',   this.onPartyPageUp.bind(this));            //i did this
    this._listWindow.setHandler('pagedown', this.onPartyPageDown.bind(this));            // i did this
    this.addWindow(this._listWindow);
};

It seems like this is the part necessary to use buttons! 🙂
this._listWindow.setHandler('pageup', this.onPartyPageUp.bind(this));
this._listWindow.setHandler('pagedown', this.onPartyPageDown.bind(this));
Yep, each window handles its own inputs, and addHandler assigns a response (e.g. "pageup") with a function (e.g. Scene_Party#onPartyPageUp).

Window_Selectable already has code to call the "ok", "cancel", "pageup", and "pagedown" responses when appropriate: that's why you could just add your handlers in this case without any extra window code. 👋

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/issue-with-processing-button-press.150744/