make ESC key working under Linux
This commit is contained in:
parent
e85cf2e0c4
commit
56fcad7b72
|
@ -64,6 +64,8 @@ DIALOG_GRAPHIC_ITEMS_OPTIONS::~DIALOG_GRAPHIC_ITEMS_OPTIONS( )
|
||||||
|
|
||||||
void DIALOG_GRAPHIC_ITEMS_OPTIONS::initValues()
|
void DIALOG_GRAPHIC_ITEMS_OPTIONS::initValues()
|
||||||
{
|
{
|
||||||
|
SetFocus();
|
||||||
|
|
||||||
/* Drawings width */
|
/* Drawings width */
|
||||||
AddUnitSymbol( *m_GraphicSegmWidthTitle );
|
AddUnitSymbol( *m_GraphicSegmWidthTitle );
|
||||||
PutValueInLocalUnits( *m_OptPcbSegmWidth,
|
PutValueInLocalUnits( *m_OptPcbSegmWidth,
|
||||||
|
@ -134,10 +136,10 @@ void DIALOG_GRAPHIC_ITEMS_OPTIONS::OnOkClick( wxCommandEvent& event )
|
||||||
ReturnValueFromTextCtrl( *m_OptModuleTextVSize, PCB_INTERNAL_UNIT );
|
ReturnValueFromTextCtrl( *m_OptModuleTextVSize, PCB_INTERNAL_UNIT );
|
||||||
ModuleTextSize.x =
|
ModuleTextSize.x =
|
||||||
ReturnValueFromTextCtrl( *m_OptModuleTextHSize, PCB_INTERNAL_UNIT );
|
ReturnValueFromTextCtrl( *m_OptModuleTextHSize, PCB_INTERNAL_UNIT );
|
||||||
|
|
||||||
g_DrawDefaultLineThickness =
|
g_DrawDefaultLineThickness =
|
||||||
ReturnValueFromTextCtrl( *m_DefaultPenSizeCtrl, PCB_INTERNAL_UNIT );
|
ReturnValueFromTextCtrl( *m_DefaultPenSizeCtrl, PCB_INTERNAL_UNIT );
|
||||||
|
|
||||||
if( g_DrawDefaultLineThickness < 0 )
|
if( g_DrawDefaultLineThickness < 0 )
|
||||||
g_DrawDefaultLineThickness = 0;
|
g_DrawDefaultLineThickness = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue