|
|
|
@ -39,7 +39,7 @@ public class ChartImage |
|
|
|
|
else { |
|
|
|
|
if ( ! mShortcuts.ContainsKey( shortcut ) ) |
|
|
|
|
mShortcuts[ shortcut ] = new List<ChartImage>() ; |
|
|
|
|
logger.Info( $"Registering shortcut: {shortcutString(shortcut.Item1,shortcut.Item2)} => ${caption()}" ) ; |
|
|
|
|
logger.Info( $"Registering shortcut: {shortcutString(shortcut.Item1,shortcut.Item2)} => {caption()}" ) ; |
|
|
|
|
mShortcuts[ shortcut ].Add( this ) ; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -144,7 +144,8 @@ public class ChartImage |
|
|
|
|
private Tuple<Keys,Keys> parseShortcut( string val ) |
|
|
|
|
{ |
|
|
|
|
// parse the shortcut |
|
|
|
|
string[] parts = val.ToLower().Split( "-" ) ; |
|
|
|
|
// FUDGE! Can't just pass in '-' since a Mono-compiled EXE has trouble running on Windows :-/ |
|
|
|
|
string[] parts = val.ToLower().Split( new char[]{'-'} ) ; |
|
|
|
|
Keys modifiers = 0 ; |
|
|
|
|
for ( int i=0 ; i < parts.Length-1 ; ++i ) { |
|
|
|
|
if ( parts[i] == "ctrl" ) |
|
|
|
|