@@ -55,10 +55,9 @@ namespace RTEGUI {
5555
5656 void EditorApp::ProcessMouseInput () {
5757 std::array<int , 3 > mouseButtons;
58- std::array<int , 3 > mouseStates;
5958 int mousePosX;
6059 int mousePosY;
61- m_Input->GetMouseButtons (mouseButtons.data (), mouseStates. data () );
60+ m_Input->GetMouseButtons (mouseButtons.data (), nullptr );
6261 m_Input->GetMousePosition (&mousePosX, &mousePosY);
6362
6463 EditorSelection ¤tSelection = m_EditorManager->GetCurrentSelection ();
@@ -132,11 +131,6 @@ namespace RTEGUI {
132131
133132 if (m_KeyStates.at (KEY_ALT) && m_KeyStates.at (KEY_F4)) { OnQuitButton (); }
134133
135- if (m_EditorManager->GetPropertyPage ()->HasTextFocus () && (m_KeyStates.at (KEY_ENTER) == pressed || m_KeyStates.at (KEY_ENTER_PAD) == pressed)) {
136- // m_EditorManager->UpdateControlProperties(m_EditorManager->GetCurrentSelection().GetControl());
137- m_UnsavedChanges = m_EditorManager->UpdatePropertyPage ();
138- }
139-
140134 // Escape key - Undo any grab
141135 if (m_KeyStates.at (KEY_ESC) == pressed) { m_EditorManager->ClearCurrentSelection (); }
142136
@@ -208,8 +202,8 @@ namespace RTEGUI {
208202 }
209203 break ;
210204 case GUIEvent::Notification:
211- if (controlName == " PropertyPage" ) {
212- m_UnsavedChanges = m_EditorManager->UpdatePropertyPage (editorEvent );
205+ if (controlName == " PropertyPage" && editorEvent. GetMsg () == GUIPropertyPage::Enter ) {
206+ m_UnsavedChanges = m_EditorManager->UpdateControlProperties (m_EditorManager-> GetCurrentSelection (). GetControl (), true );
213207 } else if (controlName == " CollectionBoxList" && editorEvent.GetMsg () == GUIListBox::MouseDown) {
214208 m_EditorManager->SelectActiveControlFromParentList ();
215209 } else if (controlName == " ControlsInCollectionBoxList" && editorEvent.GetMsg () == GUIListBox::MouseDown) {
0 commit comments