Compare commits

...

1 Commits

Author SHA1 Message Date
bensaine ee699078a9 change: way of checking if shift is pushed 3 years ago

@ -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