The Birdfont Source Code


All Repositories / birdfont.git / commit – 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
author Johan Mattsson <johan.mattsson.m@gmail.com>
Mon, 13 Jun 2016 07:59:15 +0000 (09:59 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Mon, 13 Jun 2016 07:59:15 +0000 (09:59 +0200)
commit 8e40a9aabd00e361b6a1e23756156901f75493ca
tree 274f2fede1828a668dde1a160a71797707cca01a
parent 36e61894b6b261ccd1a39c6df80fa6b6e46d3934
Move canvas with Ctrl + Shift + Click

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;