Skip to content

feat: added ctrl key modifier to move pixels and selections by 10#2072

Merged
cameronwhite merged 1 commit intoPintaProject:masterfrom
IArnaut2:feature/move-by-10
Mar 27, 2026
Merged

feat: added ctrl key modifier to move pixels and selections by 10#2072
cameronwhite merged 1 commit intoPintaProject:masterfrom
IArnaut2:feature/move-by-10

Conversation

@IArnaut2
Copy link
Copy Markdown
Contributor

@IArnaut2 IArnaut2 commented Mar 24, 2026

I have added the CTRL key as a modifier to move pixels and selections by 10.

  • Created a coefficient that changes if the CTRL key is pressed.
  • Replaced the offsets with the coefficient.
double coeff = e.IsControlPressed ? 10.0 : 1.0;

switch (e.Key.Value) {
	case Gdk.Constants.KEY_Left:
		dx = -coeff;
		break;
	// ...
}

The issues that might be not related are icons of some tools being small and the cursor disappearing in the canvas when hovering over the canvas while the Move Selected Pixels is active.

@cameronwhite
Copy link
Copy Markdown
Member

This is related to #1559 so I'll ask for @pedropaulosuzuki to review :)
The change seems reasonable to me and feels separate from any additional shortcuts for custom translation offsets, since I don't think those would remove the arrow key option?

@pedropaulosuzuki
Copy link
Copy Markdown
Contributor

This is related to #1559 so I'll ask for @pedropaulosuzuki to review :)

Looks good to me!

The change seems reasonable to me and feels separate from any additional shortcuts for custom translation offsets, since I don't think those would remove the arrow key option?

Agreed, we can have both systems at the same time.

@cameronwhite cameronwhite merged commit 1cfb7d7 into PintaProject:master Mar 27, 2026
7 checks passed
@cameronwhite
Copy link
Copy Markdown
Member

Thanks for the contribution! 🎉

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants