Formatting.
This commit is contained in:
parent
d18102fff6
commit
c6d593a47b
|
@ -2,7 +2,7 @@
|
||||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2016 Chris Pavlina <pavlina.chris@gmail.com>
|
* Copyright (C) 2016 Chris Pavlina <pavlina.chris@gmail.com>
|
||||||
* Copyright (C) 2016-2021 KiCad Developers, see AUTHORS.txt for contributors.
|
* Copyright (C) 2016-2023 KiCad Developers, see AUTHORS.txt for contributors.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License
|
* modify it under the terms of the GNU General Public License
|
||||||
|
@ -347,8 +347,8 @@ void WIDGET_HOTKEY_LIST::editItem( wxTreeListItem aItem )
|
||||||
|
|
||||||
if( it != m_reservedHotkeys.end() )
|
if( it != m_reservedHotkeys.end() )
|
||||||
{
|
{
|
||||||
wxString msg = wxString::Format(
|
wxString msg = wxString::Format( _( "'%s' is a reserved hotkey in KiCad and cannot "
|
||||||
_( "'%s' is a reserved hotkey in KiCad and cannot be assigned." ),
|
"be assigned." ),
|
||||||
it->second );
|
it->second );
|
||||||
|
|
||||||
DisplayErrorMessage( this, msg );
|
DisplayErrorMessage( this, msg );
|
||||||
|
@ -414,12 +414,14 @@ void WIDGET_HOTKEY_LIST::onMenu( wxCommandEvent& aEvent )
|
||||||
{
|
{
|
||||||
switch( aEvent.GetId() )
|
switch( aEvent.GetId() )
|
||||||
{
|
{
|
||||||
case ID_EDIT_HOTKEY:editItem( m_context_menu_item );
|
case ID_EDIT_HOTKEY:
|
||||||
|
editItem( m_context_menu_item );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ID_RESET:
|
case ID_RESET:
|
||||||
case ID_CLEAR:
|
case ID_CLEAR:
|
||||||
case ID_DEFAULT:resetItem( m_context_menu_item, aEvent.GetId());
|
case ID_DEFAULT:
|
||||||
|
resetItem( m_context_menu_item, aEvent.GetId());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue