瀏覽代碼

LibGUI: Add alternate shortcut F5 to the "reload" common action

Aatos Majava 4 年之前
父節點
當前提交
d50ff2b422
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Userland/Libraries/LibGUI/Action.cpp

+ 1 - 1
Userland/Libraries/LibGUI/Action.cpp

@@ -141,7 +141,7 @@ NonnullRefPtr<Action> make_go_home_action(Function<void(Action&)> callback, Core
 
 NonnullRefPtr<Action> make_reload_action(Function<void(Action&)> callback, Core::Object* parent)
 {
-    return Action::create("&Reload", { Mod_Ctrl, Key_R }, Gfx::Bitmap::load_from_file("/res/icons/16x16/reload.png"), move(callback), parent);
+    return Action::create("&Reload", { Mod_Ctrl, Key_R }, Key_F5, Gfx::Bitmap::load_from_file("/res/icons/16x16/reload.png"), move(callback), parent);
 }
 
 NonnullRefPtr<Action> make_select_all_action(Function<void(Action&)> callback, Core::Object* parent)