nedit-ng icon indicating copy to clipboard operation
nedit-ng copied to clipboard

Bad behaviour of the Ctrl+Shift+6 bindkey

Open ericxuo opened this issue 1 month ago • 4 comments

Hi,

The binkey Ctrl+Shift+6 should set uppercase characters to lowercase ones. This works when I use the menu : Edit=>Lower case But if I use the bindkey, then it reduces the current font, for ex, from "Liberation Mono 14" to "Liberation Mono 13".

Do you have an idea for such a behaviour ?

Regards.

Xuo.

ericxuo avatar Nov 09 '25 16:11 ericxuo

Interesting what is your keyboard layout? The font-size adjustment is intended to be triggered by the "+" and "-" keys. For me "Shift+6" == "^".

eteran avatar Nov 10 '25 17:11 eteran

Hi,

My keyboard is a French one (nobody's perfect). So, the '6' key can have the '6', '-' and '|' character depending on the combination of keyboard key. 6 => hit the '6' key

  • => Shift+6 | => AltGr+6 Should I modify the source code ? Which file ?

Regards.

Xuo.

ericxuo avatar Nov 10 '25 20:11 ericxuo

I see, OK, that makes sense.

Unfortunately, this is a slightly differrent change from the other one:

TextArea.cpp

	{Qt::Key_Equal, Qt::ControlModifier, &TextArea::zoomInAP, TextArea::NoneFlag},  // zoom-in()
	{Qt::Key_Minus, Qt::ControlModifier, &TextArea::zoomOutAP, TextArea::NoneFlag}, // zoom-out()

You can either just comment out these lines if you don't want the zoom feature or change the Qt::Key_Equal, Qt::ControlModifier part to a shortcut that makes more sense to you. The first thing is the "key constant" and the second one is the modifier. Multiple modifiers can be combined with | (as seen in subsequent lines).

eteran avatar Nov 10 '25 20:11 eteran

Hi,

I'll comment out the lines. I'll check on my side and then, ask IT (if they agree :)), to do the same.

Regards.

Xuo.

ericxuo avatar Nov 11 '25 13:11 ericxuo