godotengine / godotengine/godot

Custom shortcuts Shift+Alt+I for ui_text_caret_line_end not working

Open
#91,067 2 comments 0 reactions 0 assignees View on GitHub
bug topic:input
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

Reproducible in Godot 4.2.1 and master-4a0160241fd0c1e874e297f6b08676cf0761e5e8.

### System information

Windows 10 - Godot v4.2.1 Vulkan 1.3.277 - Forward+

### Issue description

I was learning Godot for game develop and try to add a custom shortcuts Shift+Alt+I to move cursor to line end. After I add the shortcuts in editor settings, I just found it is not working.
![image](https://github.com/godotengine/godot/assets/33823695/f0dd78bf-14c9-4ed8-8039-aaee1c463da1)

I also tried to build the latest Godot source code (HEAD at commit 4a0160241fd0c1e874e297f6b08676cf0761e5e8) and it's still not working.

Then I just dig into the Godot source code, and found (maybe not correct) that the shift key is unset when checking the caret_line_end action.
![image](https://github.com/godotengine/godot/assets/33823695/0d1bd0ea-94bb-49a0-b3a2-8002ba799d3f)

Is this the bug? Or there is just another way to solve this?

### Steps to reproduce

Open or create any project.
Open editor settings and add shortcuts Shift+Alt+I for ui_text_caret_line_end.
Open any script and put the caret in the middle of a sentence.
Press Shift+Alt+I, expect caret moved to line end, but found nothing happended

### Minimal reproduction project (MRP)

[foo.zip](https://github.com/godotengine/godot/files/15078359/foo.zip)
Just an empty project with a script attached to root node is enough.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.