v1.2.1: fixed keys ending selectors without triggering cancel logic
This commit is contained in:
parent
02e2118f3c
commit
c013ac8e30
|
@ -146,6 +146,9 @@ public class InventoryPane extends Component {
|
||||||
&& KeyBindings.getActionForKey(keyEvent) != SPDAction.BAG_3
|
&& KeyBindings.getActionForKey(keyEvent) != SPDAction.BAG_3
|
||||||
&& KeyBindings.getActionForKey(keyEvent) != SPDAction.BAG_4
|
&& KeyBindings.getActionForKey(keyEvent) != SPDAction.BAG_4
|
||||||
&& KeyBindings.getActionForKey(keyEvent) != SPDAction.BAG_5){
|
&& 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;
|
selector = null;
|
||||||
updateInventory();
|
updateInventory();
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user