mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 09:09:47 +00:00
Remove Crop tool's apply button shortcut
The issue is that by default it's mapped to Enter, which is also used to confirm editing of a slider. If we want to keep the shortcut, we need to check if something else does not have focus first.
This commit is contained in:
parent
3a57092792
commit
fc10d600a5
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://c35n21ii7onhe"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://c35n21ii7onhe"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://ctfgfelg0sho8" path="res://src/Tools/BaseTool.tscn" id="1"]
|
||||
[ext_resource type="PackedScene" uid="uid://yjhp0ssng2mp" path="res://src/UI/Nodes/ValueSlider.tscn" id="2"]
|
||||
|
@ -6,12 +6,6 @@
|
|||
[ext_resource type="Texture2D" uid="uid://bgrq56ndc4ydj" path="res://assets/graphics/misc/unlocked_size.png" id="4"]
|
||||
[ext_resource type="PackedScene" path="res://src/UI/Nodes/ValueSliderV2.tscn" id="5"]
|
||||
|
||||
[sub_resource type="InputEventAction" id="InputEventAction_inhdu"]
|
||||
action = &"transformation_confirm"
|
||||
|
||||
[sub_resource type="Shortcut" id="Shortcut_5ydch"]
|
||||
events = [SubResource("InputEventAction_inhdu")]
|
||||
|
||||
[node name="ToolOptions" instance=ExtResource("1")]
|
||||
script = ExtResource("3")
|
||||
|
||||
|
@ -145,7 +139,6 @@ prefix_y = "Height:"
|
|||
[node name="Apply" type="Button" parent="." index="7"]
|
||||
layout_mode = 2
|
||||
mouse_default_cursor_shape = 2
|
||||
shortcut = SubResource("Shortcut_5ydch")
|
||||
text = "Apply"
|
||||
|
||||
[node name="DimensionsLabel" type="Label" parent="." index="8"]
|
||||
|
|
Loading…
Reference in a new issue