change: way of checking if shift is pushed

51-shift-enter-at-merchant-no-longer-sells-to-merchant
bensaine 3 years ago
parent 7df9b2f255
commit ee699078a9

@ -2252,8 +2252,7 @@ class CAHConfirmTrade : public IActionHandler
case 1: enableResale = true; break;
default: // 2: comes only from Enter of Shift+Enter key from an edit box or in the modal window
{
const NLGUI::CEventDescriptorKey& keyEvent = CWidgetManager::getInstance()->getLastKeyEvent();
enableResale = ! keyEvent.getKeyShift();
enableResale = !Driver->AsyncListener.isKeyPushed(KeySHIFT);
}
}

Loading…
Cancel
Save