Skip to content

Commit

Permalink
Switch back erroneously flipped layer palette mnemonics
Browse files Browse the repository at this point in the history
Close #4504
  • Loading branch information
ctrlcctrlv committed Nov 19, 2020
1 parent 21ad4a1 commit 627ffa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions fontforgeexe/charview.c
Expand Up @@ -8060,9 +8060,6 @@ return;
} else if ( event->u.chr.keysym=='\\' && (event->u.chr.state&ksm_control) ) {
/* European keyboards need a funky modifier to get \ */
CVDoTransform(cv,cvt_none);
} else if ( (event->u.chr.keysym=='F' || event->u.chr.keysym=='B') &&
!(event->u.chr.state&(ksm_control|ksm_meta)) ) {
CVLSelectLayer(cv, event->u.chr.keysym=='F' ? 1 : 0);
} else if ( (event->u.chr.state&ksm_control) && (event->u.chr.keysym=='-' || event->u.chr.keysym==0xffad/*XK_KP_Subtract*/) ){
_CVMenuScale(cv, MID_ZoomOut);
} else if ( (event->u.chr.state&ksm_control) && (event->u.chr.keysym=='=' || event->u.chr.keysym==0xffab/*XK_KP_Add*/) ){
Expand Down
4 changes: 2 additions & 2 deletions fontforgeexe/cvpalettes.c
Expand Up @@ -3162,10 +3162,10 @@ void CVSetLayer(CharView *cv,int layer) {
/* Check if a key press corresponds to a mnemonic the palette knows about. */
int CVPaletteMnemonicCheck(GEvent *event) {
static struct strmatch { char *str; int cid; } strmatch[] = {
/* GT: Foreground, make it short */
{ N_("F_ore"), CID_EFore },
/* GT: Background, make it short */
{ N_("_Back"), CID_EBack },
/* GT: Foreground, make it short */
{ N_("F_ore"), CID_EFore },
/* GT: Guide layer, make it short */
{ N_("_Guide"), CID_EGrid },
{ NULL, 0 }
Expand Down

0 comments on commit 627ffa6

Please sign in to comment.