Skip to content

Commit 628c68a

Browse files
committed
Add quitting with Alt+F4
1 parent af57375 commit 628c68a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Editor/GUIEditorApp.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,7 @@ namespace RTEGUI {
569569

570570
bool modCtrl = m_KeyStates.at(KEY_LCONTROL) == pressed || m_KeyStates.at(KEY_RCONTROL) == pressed;
571571
bool modShift = m_KeyStates.at(KEY_LSHIFT) == pressed || m_KeyStates.at(KEY_RSHIFT) == pressed;
572+
bool modAlt = m_KeyStates.at(KEY_ALT) == pressed;
572573

573574
if (!m_PropertyPage->HasTextFocus() && m_SelectionInfo.Control) {
574575
if (m_KeyStates.at(KEY_DEL) == pressed) {
@@ -612,6 +613,8 @@ namespace RTEGUI {
612613
}
613614
}
614615

616+
if (modAlt && m_KeyStates.at(KEY_F4)) { OnQuitButton(); }
617+
615618
m_PrevKeyStates = m_KeyStates;
616619
}
617620

0 commit comments

Comments
 (0)