}
}
+float wxWindowMac::GetContentScaleFactor() const
+{
+ return m_peer->GetContentScaleFactor();
+}
+
void wxWindowMac::SetLabel(const wxString& title)
{
if ( title == m_label )
if ( IsTopLevel() )
return ;
- bool hasFocus = m_peer->NeedsFocusRect() && m_peer->HasFocus() ;
+ bool hasFocus = m_peer->NeedsFocusRect() && HasFocus();
// back to the surrounding frame rectangle
int tx,ty,tw,th;
return wxFindWindowFromWXWidget(wxWidgetImpl::FindFocus());
}
-void wxWindowMac::OnInternalIdle()
-{
- // This calls the UI-update mechanism (querying windows for
- // menu/toolbar/control state information)
- if (wxUpdateUIEvent::CanUpdate(this) && IsShownOnScreen())
- UpdateWindowUI(wxUPDATE_UI_FROMIDLE);
-}
-
// Raise the window to the top of the Z order
void wxWindowMac::Raise()
{
bool wxWindowMac::OSXHandleKeyEvent( wxKeyEvent& event )
{
- bool handled = HandleWindowEvent( event ) ;
- if ( handled && event.GetSkipped() )
- handled = false ;
+ bool handled = false;
+
+ // moved the ordinary key event sending AFTER the accel evaluation
#if wxUSE_ACCEL
if ( !handled && event.GetEventType() == wxEVT_KEY_DOWN)
}
}
#endif // wxUSE_ACCEL
+
+ if ( !handled )
+ {
+ handled = HandleWindowEvent( event ) ;
+ if ( handled && event.GetSkipped() )
+ handled = false ;
+ }
return handled ;
}