mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +02:00
Make alt key slightly better on windows
This commit is contained in:
parent
a8d00bf088
commit
0ee79834bb
@ -1256,3 +1256,17 @@ void EDA_BASE_FRAME::onSystemColorChange( wxSysColourChangedEvent& aEvent )
|
|||||||
// Skip the change event to ensure the rest of the window controls get it
|
// Skip the change event to ensure the rest of the window controls get it
|
||||||
aEvent.Skip();
|
aEvent.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __WXWINDOWS__
|
||||||
|
WXLRESULT EDA_BASE_FRAME::MSWWindowProc( WXUINT message, WXWPARAM wParam, WXLPARAM lParam )
|
||||||
|
{
|
||||||
|
// This will help avoid the menu keeping focus when the alt key is released
|
||||||
|
// You can still trigger accelerators as long as you hold down alt
|
||||||
|
if( message == WM_SYSCOMMAND )
|
||||||
|
if( wParam == SC_KEYMENU && ( lParam >> 16 ) <= 0 )
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
return wxFrame::MSWWindowProc( message, wParam, lParam );
|
||||||
|
}
|
||||||
|
#endif
|
@ -682,6 +682,13 @@ private:
|
|||||||
*/
|
*/
|
||||||
virtual bool IsModal() const { return false; }
|
virtual bool IsModal() const { return false; }
|
||||||
|
|
||||||
|
#ifdef __WXWINDOWS__
|
||||||
|
/**
|
||||||
|
* Windows specific override of the wxWidgets message handler for a window
|
||||||
|
*/
|
||||||
|
WXLRESULT MSWWindowProc( WXUINT message, WXWPARAM wParam, WXLPARAM lParam ) override;
|
||||||
|
#endif
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
FRAME_T m_ident; // Id Type (pcb, schematic, library..)
|
FRAME_T m_ident; // Id Type (pcb, schematic, library..)
|
||||||
wxPoint m_framePos;
|
wxPoint m_framePos;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user