The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Merge ../birdfont-2.x

Changes made to libbirdfont/Menu.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/Menu.vala +++ libbirdfont/Menu.vala @@ -396,7 +396,12 @@ MenuItem next_kerning_pair = add_menu_item (t_("Select Next Kerning Pair"), "select next kerning pair"); next_kerning_pair.action.connect (() => { - KerningDisplay.next_pair (); + if (KerningDisplay.right_to_left) { + KerningDisplay.previous_pair (); + } else { + KerningDisplay.next_pair (); + } + show_menu = false; }); next_kerning_pair.add_display("Kerning"); @@ -405,7 +410,12 @@ MenuItem previous_kerning_pair = add_menu_item (t_("Select Previous Kerning Pair"), "select previous kerning pair"); previous_kerning_pair.action.connect (() => { - KerningDisplay.previous_pair (); + if (KerningDisplay.right_to_left) { + KerningDisplay.next_pair (); + } else { + KerningDisplay.previous_pair (); + } + show_menu = false; }); previous_kerning_pair.add_display("Kerning");