From 822a7de65b07562dd05a4dfb6a1dd4fcc6955a0c Mon Sep 17 00:00:00 2001 From: Val Erastov Date: Sat, 22 Oct 2016 22:13:57 -0700 Subject: [PATCH] not show empty action dialogs --- web/app/3d/ui/input-manager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/3d/ui/input-manager.js b/web/app/3d/ui/input-manager.js index d66fabbd..6173d10e 100644 --- a/web/app/3d/ui/input-manager.js +++ b/web/app/3d/ui/input-manager.js @@ -87,8 +87,8 @@ InputManager.prototype.requestInfo = function(actionRequest) { this.requestedActionInfo = null; if (actionId != null ) { const action = this.app.actionManager.actions[actionId]; - if (action) { - const hotKey = this.keymap[actionId]; + const hotKey = this.keymap[actionId]; + if (action && (action.state.hint || action.info || hotKey)) { Bind(this.actionInfoDom, { hint: action.state.hint, info: action.info,