Browse Source

Support publishing with Ctrl+Enter shortcut

tags/v1.0.0
Matt Baer 6 years ago
parent
commit
7b4445955e
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/window.vala

+ 4
- 0
src/window.vala 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);
}


Loading…
Cancel
Save