From e05069ce3c2240092503d60f534b043703f3d769 Mon Sep 17 00:00:00 2001 From: Michael Kavanagh Date: Fri, 4 Sep 2020 12:25:07 +0100 Subject: [PATCH] Enable sorting on hotkey widget Fixes https://gitlab.com/kicad/code/kicad/issues/5495 --- common/widgets/widget_hotkey_list.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/common/widgets/widget_hotkey_list.cpp b/common/widgets/widget_hotkey_list.cpp index 5a64f01585..5c501b4965 100644 --- a/common/widgets/widget_hotkey_list.cpp +++ b/common/widgets/widget_hotkey_list.cpp @@ -453,9 +453,9 @@ WIDGET_HOTKEY_LIST::WIDGET_HOTKEY_LIST( wxWindow* aParent, HOTKEY_STORE& aHotkey if( !m_readOnly ) command_header << " " << _( "(double-click to edit)" ); - AppendColumn( command_header, 320 ); - AppendColumn( _( "Hotkey" ), 110 ); - AppendColumn( _( "Description" ), 1000 ); + AppendColumn( command_header, 320, wxALIGN_LEFT, wxCOL_RESIZABLE | wxCOL_SORTABLE ); + AppendColumn( _( "Hotkey" ), 110, wxALIGN_LEFT, wxCOL_RESIZABLE | wxCOL_SORTABLE ); + AppendColumn( _( "Description" ), 1000, wxALIGN_LEFT, wxCOL_RESIZABLE | wxCOL_SORTABLE ); GetDataView()->SetIndent( 10 ); if( !m_readOnly ) @@ -572,4 +572,3 @@ long WIDGET_HOTKEY_LIST::MapKeypressToKeycode( const wxKeyEvent& aEvent ) return key; } } -