SUMMARY On my system, Toplevel Node folding/unfolding is assigned the keyboard shortcuts 'Ctrl'+'Shift'+'-' and 'Ctrl'+'Shift'+'+' respectively. The former works, but the latter will instead trigger the Enlarge font shortcut which is 'Ctrl'+'+' when using the '+' key in the "typewriter section" of the keyboard. When using the '+' key from the numeric keypad section of the keyboard, the shortcut works as intended. I'm not sure if this is a kate bug or a frameworks/qt bug, please reassign accordingly. STEPS TO REPRODUCE 1. Type C-style code in kate, using '{}' blocks and enable C code highlighting 2. Fold the node using the mouse or by pressing 'Ctrl'+'Shift'+'-' 3. Try unfolding the node by pressing 'Ctrl'+'Shift'+'+' using the '+' key from the typewriter section of your keyboard. OBSERVED RESULT Instead of unfolding the node, kate will enlarge font size EXPECTED RESULT {} block should be unfolded SOFTWARE/OS VERSIONS Linux/KDE Plasma: Gentoo kernel 5.3/Plasma KDE Plasma Version: 5.17.3 KDE Frameworks Version: 5.64.0 Qt Version: 5.13.2 ADDITIONAL INFORMATION Keyboard layout: US Keyboard Model: Generic 104-key PC
I had the same problem with Kile, which uses the current configuration with Kate. Changing the shortcuts for code folding / unfolding to other symbols seems to resolve this. I guess this is a problem of the default keyboard short cut configuration. Not sure how one would be able to get "Control+Shift++" instead of "Control++" on a keyboard with no numeric keypad (e.g. laptops).
Confirmed on kate from git master. C code sample #include <stdio.h> int main() { // printf() displays the string inside quotation printf("Hello, World!"); return 0; }
I can't now reproduce this issue on Kate 23.04.3, George and Angelos can you please confirm if you are still experiencing this issue?
(In reply to Justin Zobel from comment #3) > I can't now reproduce this issue on Kate 23.04.3, George and Angelos can you > please confirm if you are still experiencing this issue? Hi Justin, I am still experiencing the issue with Kile 2.9.93 and Kate 23.04.03. Keyboard shortcuts are their default selections. Keep in mind that I only have a reduced-size keyboard to work with (no numpad), so I can't confirm whether or not it's working correctly with the numpad.
Ah yes. I just tried on my laptop that doesn't have a numpad and used the =/+ sign at the end of the number row and it does not function correctly. Thanks for your quick reply. Hopefully someone can look into this soon!