Formatting.

This commit is contained in:
Jeff Young 2023-04-16 22:49:54 +01:00
parent d18102fff6
commit c6d593a47b
1 changed files with 12 additions and 10 deletions

View File

@ -2,7 +2,7 @@
* 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-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
* 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() )
{
wxString msg = wxString::Format(
_( "'%s' is a reserved hotkey in KiCad and cannot be assigned." ),
wxString msg = wxString::Format( _( "'%s' is a reserved hotkey in KiCad and cannot "
"be assigned." ),
it->second );
DisplayErrorMessage( this, msg );
@ -414,12 +414,14 @@ void WIDGET_HOTKEY_LIST::onMenu( wxCommandEvent& aEvent )
{
switch( aEvent.GetId() )
{
case ID_EDIT_HOTKEY:editItem( m_context_menu_item );
case ID_EDIT_HOTKEY:
editItem( m_context_menu_item );
break;
case ID_RESET:
case ID_CLEAR:
case ID_DEFAULT:resetItem( m_context_menu_item, aEvent.GetId());
case ID_DEFAULT:
resetItem( m_context_menu_item, aEvent.GetId());
break;
default: