diff options
| author | Adrian Robert | 2009-09-18 23:54:04 +0000 |
|---|---|---|
| committer | Adrian Robert | 2009-09-18 23:54:04 +0000 |
| commit | 0bae4e09edd730765af582e5c414a83fdc454869 (patch) | |
| tree | fc9700e785f2c520d9ea22481289fbe40a6ab5c9 /src/nsmenu.m | |
| parent | e2b6daf4193bcfd81d6dc67eeee3d50888710818 (diff) | |
| download | emacs-0bae4e09edd730765af582e5c414a83fdc454869.tar.gz emacs-0bae4e09edd730765af582e5c414a83fdc454869.zip | |
* nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more carefully.
Diffstat (limited to 'src/nsmenu.m')
| -rw-r--r-- | src/nsmenu.m | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/nsmenu.m b/src/nsmenu.m index 05184660bac..335e4c0e640 100644 --- a/src/nsmenu.m +++ b/src/nsmenu.m | |||
| @@ -610,11 +610,12 @@ name_is_separator (name) | |||
| 610 | 610 | ||
| 611 | while (*tpos == ' ' || *tpos == '(') | 611 | while (*tpos == ' ' || *tpos == '(') |
| 612 | tpos++; | 612 | tpos++; |
| 613 | if (*tpos != 's') { | 613 | if ((*tpos == 's') && (*(tpos+1) == '-')) |
| 614 | keyEquivModMask = 0; /* signal */ | 614 | { |
| 615 | return [NSString stringWithUTF8String: tpos]; | 615 | return [NSString stringWithFormat: @"%c", tpos[2]]; |
| 616 | } | 616 | } |
| 617 | return [NSString stringWithFormat: @"%c", tpos[2]]; | 617 | keyEquivModMask = 0; /* signal */ |
| 618 | return [NSString stringWithUTF8String: tpos]; | ||
| 618 | } | 619 | } |
| 619 | 620 | ||
| 620 | 621 | ||