From c2a82068e350267e26f2cac6f3cd29ac1690b220 Mon Sep 17 00:00:00 2001 From: Face <69168154+face-hh@users.noreply.github.com> Date: Wed, 10 Sep 2025 17:32:25 +0300 Subject: [PATCH] refresh page CTRL R --- flumi/Scenes/BrowserMenus/help.tscn | 14 +++++++++++++- flumi/Scripts/Browser/TabContainer.gd | 2 ++ flumi/project.godot | 5 +++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/flumi/Scenes/BrowserMenus/help.tscn b/flumi/Scenes/BrowserMenus/help.tscn index 7ad75c3..9cf464d 100644 --- a/flumi/Scenes/BrowserMenus/help.tscn +++ b/flumi/Scenes/BrowserMenus/help.tscn @@ -213,7 +213,6 @@ size_flags_horizontal = 3 theme_override_constants/separation = 0 [node name="ShortcutsPanel" type="VBoxContainer" parent="HSplitContainer/Content/ScrollContainer/ContentStack"] -visible = false layout_mode = 2 theme_override_constants/separation = 20 @@ -304,6 +303,18 @@ theme = ExtResource("2_theme") theme_override_colors/font_color = Color(0.7, 0.7, 0.7, 1) text = "Focus address bar" +[node name="Label6" type="Label" parent="HSplitContainer/Content/ScrollContainer/ContentStack/ShortcutsPanel/NavigationSection/VBoxContainer/GridContainer"] +layout_mode = 2 +theme = ExtResource("2_theme") +theme_override_colors/font_color = Color(0.8, 0.8, 0.8, 1) +text = "Ctrl+R" + +[node name="Description6" type="Label" parent="HSplitContainer/Content/ScrollContainer/ContentStack/ShortcutsPanel/NavigationSection/VBoxContainer/GridContainer"] +layout_mode = 2 +theme = ExtResource("2_theme") +theme_override_colors/font_color = Color(0.7, 0.7, 0.7, 1) +text = "Refresh tab" + [node name="WindowSection" type="PanelContainer" parent="HSplitContainer/Content/ScrollContainer/ContentStack/ShortcutsPanel"] layout_mode = 2 theme_override_styles/panel = SubResource("StyleBoxFlat_section") @@ -461,6 +472,7 @@ text = "GURT is a content delivery protocol similar to HTTPS. It's the core of h autowrap_mode = 3 [node name="ScriptingPanel" type="VBoxContainer" parent="HSplitContainer/Content/ScrollContainer/ContentStack"] +visible = false layout_mode = 2 theme_override_constants/separation = 20 diff --git a/flumi/Scripts/Browser/TabContainer.gd b/flumi/Scripts/Browser/TabContainer.gd index b969a58..771d3ec 100644 --- a/flumi/Scripts/Browser/TabContainer.gd +++ b/flumi/Scripts/Browser/TabContainer.gd @@ -249,6 +249,8 @@ func _input(_event: InputEvent) -> void: if Input.is_action_just_pressed("FocusSearch"): main.search_bar.grab_focus() main.search_bar.select_all() + if Input.is_action_just_pressed("ReloadPage"): + main.reload_current_page() func _on_new_tab_button_pressed() -> void: create_tab() diff --git a/flumi/project.godot b/flumi/project.godot index ceede71..6dd1a5c 100644 --- a/flumi/project.godot +++ b/flumi/project.godot @@ -80,3 +80,8 @@ DevTools={ "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":true,"ctrl_pressed":true,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":73,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null) ] } +ReloadPage={ +"deadzone": 0.2, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":true,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":82,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null) +] +}