The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Move canvas with Ctrl + Shift + Click

These changes was commited to the Birdfont repository Mon, 13 Jun 2016 07:59:15 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Mon, 13 Jun 2016 07:59:15 +0000]

Updated Files

libbirdfont/DrawingTools.vala
libbirdfont/Glyph.vala
--- a/libbirdfont/DrawingTools.vala +++ b/libbirdfont/DrawingTools.vala @@ -191,7 +191,9 @@ }); draw_tools.add_tool (move_background); - move_canvas = new Tool ("move_canvas", t_("Move canvas")); + move_canvas = new Tool ("move_canvas", t_("Move canvas") + + "\n" + t_("Ctrl + Shift + Click") + + "\n" + t_("Space + Click") + "\n"); move_canvas.select_action.connect ((self) => { update_drawing_and_background_tools (self); });
--- a/libbirdfont/Glyph.vala +++ b/libbirdfont/Glyph.vala @@ -991,7 +991,9 @@ return; } - if (move_canvas || DrawingTools.move_canvas.is_selected ()) { + if (move_canvas + || DrawingTools.move_canvas.is_selected () + || (KeyBindings.has_ctrl () && KeyBindings.has_shift ())) { view_is_moving = true; move_offset_x = view_offset_x; move_offset_y = view_offset_y;