mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-01 18:50:16 +03:00
Fix CI build pt. 2
This commit is contained in:
@@ -1064,7 +1064,7 @@ void UIFontPickerDialog::onWindowReady() {
|
||||
}
|
||||
|
||||
Uint32 UIFontPickerDialog::onKeyUp( const KeyEvent& event ) {
|
||||
if ( mCloseShortcut && event.getKeyCode() == mCloseShortcut &&
|
||||
if ( mCloseShortcut && event.getKeyCode() == mCloseShortcut.key &&
|
||||
( mCloseShortcut.mod == 0 || ( event.getMod() & mCloseShortcut.mod ) ) ) {
|
||||
sendCommonEvent( Event::OnDiscard );
|
||||
sendCommonEvent( Event::OnCancel );
|
||||
|
||||
@@ -206,7 +206,7 @@ UIPushButton* UIMessageBox::getButtonCancel() const {
|
||||
}
|
||||
|
||||
Uint32 UIMessageBox::onKeyUp( const KeyEvent& event ) {
|
||||
if ( mCloseShortcut && event.getKeyCode() == mCloseShortcut &&
|
||||
if ( mCloseShortcut && event.getKeyCode() == mCloseShortcut.key &&
|
||||
( mCloseShortcut.mod == 0 || ( event.getMod() & mCloseShortcut.mod ) ) ) {
|
||||
sendCommonEvent( Event::OnDiscard );
|
||||
closeWindow();
|
||||
|
||||
Reference in New Issue
Block a user