Problem overridding keyboard shortcuts containing braces.

Summary:

Braces are being used as a default keyboard shortcuts to rotate objects CW and CCW. Alt and Ctrl keys modify increments. Custom keyboard shortcuts that use brackets do not work as expected. The default behavior can't be overridden.

Steps to reproduce:

  • open Inkscape
  • open Preferences dialog
  • go to Inteface > Keyboard
  • search for Lower in search input
  • from the filtered list below select: Select > Lower
  • double click on Shortcut column and define new accelerator Ctrl + [
  • repeat the three previous steps but this time assign Ctrl + ] to Select > Raise
  • add some overlapping object to the canvas and select one of them
  • try to use assigned keyboard shortcuts in order to change stack order

What happened?

Object are being rotated in 90deg increments which is the default behavior.

What should have happened?

Objects should be lowered or raised in the stack.

Shortcuts work to some extent when the Layer and Object dialog box has focus. The object can then be lowered or raised using the assigned shortcuts, but the behavior is inconsistent. Sometimes the shortcuts stop working or jump more than one position in the stack or exhibit other unpredictable behavior. Might be related to #5093 (closed)

Sample attachments:

Version info

Inkscape 1.4-beta3 (400d361, 2024-09-19, custom)

                      Compile  (Run)
    GLib version:     2.80.3
    GTK version:      3.24.42 (3.24.42)
    glibmm version:   2.66.7
    gtkmm version:    3.24.9
    libxml2 version:  2.12.8
    libxslt version:  1.1.42
    Cairo version:    1.18.0 (1.18.0)
    Pango version:    1.54.0 (1.54.0)
    HarfBuzz version: 9.0.0 (9.0.0)

    OS version:       Windows 11 23H2

This issue is also present in 1.5 branch

Inkscape 1.5-dev (8936a35, 2024-09-09, custom)

                      Compile  (Run)
    GLib version:     2.80.3
    GTK version:      4.14.4 (4.14.4)
    glibmm version:   2.80.0
    gtkmm version:    4.14.0
    libxml2 version:  2.12.8
    libxslt version:  1.1.42
    Cairo version:    1.18.0 (1.18.0)
    Pango version:    1.54.0 (1.54.0)
    HarfBuzz version: 9.0.0 (9.0.0)
    Poppler version:  24.07.0

    OS version:       Windows 11 23H2
Edited by dopelover