← Back to team overview

kicad-developers team mailing list archive

[PATCH] Fix place track menu hotkey text

 

Hello

The attached patch makes the shortcut text label for the "Place ->
Track" menu option show the hotkey as it is done in every other menu.
Before it showed for example "Place (X)" instead of
"Place<whitespace>X", where the hotkey is right aligned in the second
case.

I also took the liberty to fix some indentation while I was there
anyway. So therefore this patch, fixes the place track menu hotkey
text.

Regards
Nick Østergaard
=== modified file 'pcbnew/menubar_pcbframe.cpp'
--- pcbnew/menubar_pcbframe.cpp	2014-10-15 11:40:38 +0000
+++ pcbnew/menubar_pcbframe.cpp	2014-11-07 22:15:14 +0000
@@ -370,7 +370,7 @@
                  _( "Add footprints" ), KiBitmap( module_xpm ) );
 
     text = AddHotkeyName( _( "&Track" ), g_Pcbnew_Editor_Hokeys_Descr,
-                          HK_ADD_NEW_TRACK, IS_COMMENT );
+                          HK_ADD_NEW_TRACK );
     AddMenuItem( placeMenu, ID_TRACK_BUTT, text,
                  _( "Add tracks and vias" ), KiBitmap( add_tracks_xpm ) );
 
@@ -381,8 +381,8 @@
                  _( "&Keepout Area" ), _( "Add keepout areas" ), KiBitmap( add_keepout_area_xpm ) );
 
     AddMenuItem( placeMenu, ID_PCB_ADD_TEXT_BUTT,
-                  _( "Te&xt" ), _( "Add text on copper layers or graphic text" ),
-                  KiBitmap( add_text_xpm ) );
+                 _( "Te&xt" ), _( "Add text on copper layers or graphic text" ),
+                 KiBitmap( add_text_xpm ) );
 
     AddMenuItem( placeMenu, ID_PCB_ARC_BUTT,
                  _( "&Arc" ), _( "Add graphic arc" ),KiBitmap( add_arc_xpm ) );


Follow ups