Support publishing with Ctrl+Enter shortcut

This commit is contained in:
Matt Baer 2018-04-19 20:31:46 -04:00
parent 2c51409242
commit 7b4445955e

View File

@ -251,6 +251,10 @@ public class WriteAs.MainWindow : Gtk.ApplicationWindow {
}
return true;
});
accels.connect(Gdk.Key.Return, Gdk.ModifierType.CONTROL_MASK, Gtk.AccelFlags.VISIBLE | Gtk.AccelFlags.LOCKED, (g,a,k,m) => {
canvas.buffer.text += "\n\n" + publish();
return true;
});
add_accel_group(accels);
}