v1.2.1: fixed keys ending selectors without triggering cancel logic

This commit is contained in:
Evan Debenham 2022-03-29 16:23:16 -04:00
parent 02e2118f3c
commit c013ac8e30

View File

@ -146,6 +146,9 @@ public class InventoryPane extends Component {
&& KeyBindings.getActionForKey(keyEvent) != SPDAction.BAG_3
&& KeyBindings.getActionForKey(keyEvent) != SPDAction.BAG_4
&& KeyBindings.getActionForKey(keyEvent) != SPDAction.BAG_5){
//any windows opened as a consequence of this should be centered on the inventory
GameScene.centerNextWndOnInvPane();
selector.onSelect(null);
selector = null;
updateInventory();
return true;