godotengine / godotengine/godot

Ctrl arrow key movement or selection is jumping differently than I would have expected, but is the same behavior in all versions of godot

Open
#113,258 0 comments 1 reaction 0 assignees View on GitHub
discussion topic:editor usability
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

v4.6.dev4.official [bd2ca13c6]
v3.6.2.stable.official [3cd3caab6]
even version 1.0

### System information

Godot v4.6.dev4 - Windows 11 (build 26100) - Multi-window, 9 monitors - OpenGL 3 (Compatibility) - NVIDIA GeForce RTX 3070 (NVIDIA; 32.0.15.6636) - 11th Gen Intel(R) Core(TM) i9-11900K @ 3.50GHz (16 threads) - 62.85 GiB memory

### Issue description

When using ctrl + arrow key to move around the text (I was using ctrl + shift to highlight), it was selecting different amounts of stuff depending on the text. I am not sure if it is supposed to act this way, but seemed like it should stop at the variable space and not jump to the colon for String, Array, and Dictionary. This is the behavior it has in all version of godot, so this may be the intended movement, but just seemed off. If this is correct, then you can just close this ticket.

### Steps to reproduce

https://github.com/user-attachments/assets/0a8f6b22-baf0-42ec-a2bc-dd3c18da7369

### Minimal reproduction project (MRP)

Not needed, can just copy and paste the script or make one similar to test:
```gdscript
extends Control
func zero() -> void: pass
var one :float= 0.0
var two :int= 0
var three :Callable= zero
var four :String= ""
var five :Array= []
var six :Dictionary= {}
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the behavior from the attached video using the provided script in Godot versions 4.6.dev4, 3.6.2, and 1.0. First determine whether Ctrl+Arrow movement and Ctrl+Shift selection should stop at variable spaces or continue to punctuation; done requires an agreed expected behavior and verification across the shown String, Array, and Dictionary declarations.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.