Can't type square brackets in tables, IT keyboard
Version, Operative system CherryTree 0.99.49, Windows 11 pro 21H2
Describe the bug With an Italian keyboard the square brackets "[" "]" are assigned to a key combination with AltGr + one of the two keys at the top left of the "Enter" key. When I'm in a table cell, and I press one of these combinations I have the result of what would be in the menu "Edit" | "Move Up Row" or "Edit" | "Move Down Row", but not the insertion of the square brackets. Note also that the menu entries show to be assigned to Alt + Up and Alt + Down, but these two aren't working, neither from the keyboard nor clicking the menu. Typing the square brackets in any other part of the notes works flawlessly.
To Reproduce Steps to reproduce the behavior:
- Use an Italian keyboard layout
- Insert any table; add some rows of dummy data to show the behavior
- Move the cursor in a cell
- Typing AltGr + [ will result in moving the row up, and AltGr + ] in moving the row down; no square bracket is inserted
- Move the cursor outside of the table, repeat typing AltGr + [, AltGr + ], this time will insert square brackets properly
[EDIT] Note I tried the same with CherryTree 0.99.45 on Linux Mint 20.3, still with the IT keyboard, and it works correctly. Looks very likely a generic issue on Windows' keyboard layout assignment.
I tried the latest on Ubuntu and Italian keyboard, in a table cell:
- Ctrl+AltGr+SquareBracket Left/Right and it works fine moving the row up and down
- AltGr+SquareBracket Left/Right and it works fine inserting the square bracket Left/Right
I'll see if I can reproduce on Windows.
Unfortunately there is a bug in the gtk3 library built in msys2. I will prepare some simple code to display the issue and raise a ticket to the library.
Raised ticket https://github.com/msys2/MINGW-packages/issues/13372
Might be related to this: https://github.com/giuspen/cherrytree/issues/1944
The last CherryTree version where Ctrl+Alt and AltGr work properly (in Windows) is 0.99.44.
Raised ticket https://gitlab.gnome.org/GNOME/gtk/-/issues/5231
The insertion of the square brackets from Italian keyboard will work now but the keyboard shortcut will not until the issue in the library is fixed. For this reason I'm leaving the ticket open for now.
Oh well, at least I will not be limited to parenthesis 😄
In the next version 0.99.55 the keyboard shortcuts for the table actions will be configurable in the preferences dialog