← Back to team overview

kicad-developers team mailing list archive

[PATH] new Place menu shortcut keys

 

this patch fix the accelerator keys for the Place menu.

cheers
Fabrizio
=== modified file 'common/hotkeys_basic.cpp'
--- common/hotkeys_basic.cpp	2011-09-14 15:29:57 +0000
+++ common/hotkeys_basic.cpp	2011-09-14 15:34:01 +0000
@@ -194,7 +194,10 @@
         if( aIsShortCut )
             msg << wxT( "\t" ) << keyname;
         else
-            msg << wxT( " <" ) << keyname << wxT( ">" );
+            if  (keyname.IsSameAs(wxT( "/" )) )
+                msg << wxT( "\t" ) << MODIFIER_ALT <<  keyname;
+            else
+                msg << wxT( "\t" ) << MODIFIER_SHIFT <<  keyname;
     }
 
     return msg;
@@ -231,7 +234,10 @@
                 if( aIsShortCut )
                     msg << wxT( "\t" ) << keyname;
                 else
-                    msg << wxT( " <" ) << keyname << wxT( ">" );
+                    if  (keyname.IsSameAs(wxT( "/" )) )
+                        msg << wxT( "\t" ) << MODIFIER_ALT <<  keyname;
+                    else
+                        msg << wxT( "\t" ) << MODIFIER_SHIFT <<  keyname;
 
                 break;
             }