cherrytree icon indicating copy to clipboard operation
cherrytree copied to clipboard

Can't type square brackets in tables, IT keyboard

Open lmattcris opened this issue 3 years ago • 7 comments

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:

  1. Use an Italian keyboard layout
  2. Insert any table; add some rows of dummy data to show the behavior
  3. Move the cursor in a cell
  4. Typing AltGr + [ will result in moving the row up, and AltGr + ] in moving the row down; no square bracket is inserted
  5. 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.

lmattcris avatar Sep 27 '22 14:09 lmattcris

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.

giuspen avatar Oct 02 '22 16:10 giuspen

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.

giuspen avatar Oct 02 '22 18:10 giuspen

Raised ticket https://github.com/msys2/MINGW-packages/issues/13372

giuspen avatar Oct 02 '22 19:10 giuspen

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.

dardoor avatar Oct 03 '22 20:10 dardoor

Raised ticket https://gitlab.gnome.org/GNOME/gtk/-/issues/5231

giuspen avatar Oct 04 '22 19:10 giuspen

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.

giuspen avatar Oct 05 '22 17:10 giuspen

Oh well, at least I will not be limited to parenthesis 😄

lmattcris avatar Oct 06 '22 06:10 lmattcris

In the next version 0.99.55 the keyboard shortcuts for the table actions will be configurable in the preferences dialog

giuspen avatar Feb 25 '23 22:02 giuspen