This website works better with JavaScript.
Home
Explore
Help
Sign In
writeas
/
writeas-gtk
Watch
1
Star
0
Fork
0
Code
Issues
1
Pull Requests
0
Releases
3
Wiki
Activity
Browse Source
Support publishing with Ctrl+Enter shortcut
tags/v1.0.0
Matt Baer
6 years ago
parent
2c51409242
commit
7b4445955e
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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);
}
Write
Preview
Loading…
Cancel
Save