diff --git a/juci/config.json b/juci/config.json index a97637f..9b3e661 100644 --- a/juci/config.json +++ b/juci/config.json @@ -38,6 +38,7 @@ "open_file": "o", "save": "s", "save_as": "s", + "quit": "q", "split_window": "s", "close_tab": "w", diff --git a/juci/window.cc b/juci/window.cc index 7504fb7..bf084f1 100644 --- a/juci/window.cc +++ b/juci/window.cc @@ -16,7 +16,9 @@ Window::Window() : set_default_size(600, 400); add(window_box_); keybindings_.action_group_menu()->add(Gtk::Action::create("FileQuit", - Gtk::Stock::QUIT), + "Quit juCi++"), + Gtk::AccelKey(keybindings_.config_ + .key_map()["quit"]), [this]() { OnWindowHide(); });