Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Text Editor] Shift+Tab shortcut only works when multiple lines are selected #50279

Closed
nonunknown opened this issue Jul 8, 2021 · 3 comments · Fixed by #60904
Closed

[Text Editor] Shift+Tab shortcut only works when multiple lines are selected #50279

nonunknown opened this issue Jul 8, 2021 · 3 comments · Fixed by #60904

Comments

@nonunknown
Copy link
Contributor

Godot version

v4.0.dev.custom_build [cb4e421]

System information

manjaro Gnome 21, AMD R7 200 series, Intel i3 3.0 GHZ,8GB RAM

Issue description

When you select multiple lines and press SHIFT+TAB the tab goes back one step which is ok:
before:
image
after:
image

But if the cursor is over one line only (without selecting) SHIFT+TAB doesnt work:
before:
image

after:
image

PS: it only works if the single line is selected, but without any selection it doesnt work!

Steps to reproduce

  • Select Multiple lines
  • press the shortcut
  • put the cursor at a single line without selection
  • press the shortcut

Minimal reproduction project

N/a

@Calinou
Copy link
Member

Calinou commented Jul 8, 2021

As far as I know, this doesn't occur in 3.3.2.

@ghost
Copy link

ghost commented Jul 8, 2021

What is the desired behavior? It seems like Godot 3 always unindents the line the cursor was on, but Godot 4 appears to have changed it to only remove tabs and spaces the cursor is touching.

@Calinou
Copy link
Member

Calinou commented Jul 8, 2021

What is the desired behavior? It seems like Godot 3 always unindents the line the cursor was on, but Godot 4 appears to have changed it to only remove tabs and spaces the cursor is touching.

The 3.x behavior definitely feels more natural to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants