Skip to content

Commit 85385ff

Browse files
committed
Proposing additional Keystrokes
Command | Keystroke --------|---------- Save as | `Ctrl-Shift-S` Split cell | `Ctrl-Return` Restart (kernel) | `Ctrl-Alt-R`
1 parent 2fc761f commit 85385ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/gtkmm/NotebookWindow.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ NotebookWindow::NotebookWindow(Cadabra *c, bool ro)
9393
sigc::mem_fun(*this, &NotebookWindow::on_file_close) );
9494
actiongroup->add( Gtk::Action::create("Save", Gtk::Stock::SAVE), Gtk::AccelKey("<control>S"),
9595
sigc::mem_fun(*this, &NotebookWindow::on_file_save) );
96-
actiongroup->add( Gtk::Action::create("SaveAs", Gtk::Stock::SAVE_AS),
96+
actiongroup->add( Gtk::Action::create("SaveAs", Gtk::Stock::SAVE_AS), Gtk::AccelKey("<control><shift>S"),
9797
sigc::mem_fun(*this, &NotebookWindow::on_file_save_as) );
9898
actiongroup->add( Gtk::Action::create("ExportHtml", "Export to standalone HTML"),
9999
sigc::mem_fun(*this, &NotebookWindow::on_file_export_html) );
@@ -121,7 +121,7 @@ NotebookWindow::NotebookWindow(Cadabra *c, bool ro)
121121
sigc::mem_fun(*this, &NotebookWindow::on_edit_insert_below) );
122122
actiongroup->add( Gtk::Action::create("EditDelete", "Delete cell"), Gtk::AccelKey("<ctrl>Delete"),
123123
sigc::mem_fun(*this, &NotebookWindow::on_edit_delete) );
124-
actiongroup->add( Gtk::Action::create("EditSplit", "Split cell"),
124+
actiongroup->add( Gtk::Action::create("EditSplit", "Split cell"), Gtk::AccelKey("<control>Return"),
125125
sigc::mem_fun(*this, &NotebookWindow::on_edit_split) );
126126
actiongroup->add( Gtk::Action::create("EditMakeCellTeX", "Cell is LaTeX"), Gtk::AccelKey("<control><shift>L"),
127127
sigc::mem_fun(*this, &NotebookWindow::on_edit_cell_is_latex) );
@@ -203,7 +203,7 @@ NotebookWindow::NotebookWindow(Cadabra *c, bool ro)
203203
actiongroup->add( Gtk::Action::create("EvaluateStop", Gtk::Stock::STOP, "Stop"), Gtk::AccelKey('.', Gdk::MOD1_MASK),
204204
sigc::mem_fun(*this, &NotebookWindow::on_run_stop) );
205205
actiongroup->add( Gtk::Action::create("MenuKernel", "_Kernel") );
206-
actiongroup->add( Gtk::Action::create("KernelRestart", Gtk::Stock::REFRESH, "Restart"),
206+
actiongroup->add( Gtk::Action::create("KernelRestart", Gtk::Stock::REFRESH, "Restart"), Gtk::AccelKey("<control><alt>R"),
207207
sigc::mem_fun(*this, &NotebookWindow::on_kernel_restart) );
208208

209209
actiongroup->add(Gtk::Action::create("MenuCompare", "Compare"));

0 commit comments

Comments
 (0)