Aligning shapes using keyboard shortcuts ignores the "Relative to: Last Selected" option

Summary:

Aligning shapes using keyboard shortcuts ignores the "Relative to: Last Selected" option. Instead, the first selected shape is used as a basis.

Steps to reproduce:

  • open Inkscape
  • create two shapes
  • open the alignment dialog
  • select the "Relative to: Last Selected" option
  • select the shapes one-by-one
  • use keyboard shortcut (e.g. Ctrl+alt+KP_4) for aligning the shapes

What happened?

  • shapes were aligned relative to the FIRST selected shape

What should have happened?

  • shapes were aligned relative to the LAST selected shape

Sample attachments:

Version info

Inkscape 1.2-alpha1 (b6a15bbbed, 2022-02-23)