j6t / kdbg

A Graphical Debugger Interface around GDB
GNU General Public License v2.0
89 stars 19 forks source link

When run in KDE, some accelerators (`&<letter>`) are not being interpreted? #33

Open hartwork opened 8 months ago

hartwork commented 8 months ago

Some of the accelerator keys seem to not be set up properly in kdbg. A screenshot probably say it best:

kdbg_Screenshot_20231026_033000

Any ideas why this is happening?

j6t commented 8 months ago

Works for me as expected: the accelerators are invisible and become visible as underlined letters only when I press Alt. This happens both in English and localized versions.

hartwork commented 8 months ago

@j6t for me, this is what I see all the time (without pressing Alt). Also, some of the accelerators do work, e.g. Brea_k_p… on the very lower left.

j6t commented 8 months ago

I have no idea what is going on. Can you try to move away .config/kdbgrc so that you start with pristine settings? Do you have an old kdbgui.rc somewhere in your $HOME/.??*? Try moving it out of the way.

hartwork commented 8 months ago

@j6t deleted ~/.config/kdbgrc now, same. It seems as if all of these accelerators appear in two places that are interconnected and either some code tries to help us by showing that one of the two will not be working or finds an unused accelerator itself and then uses the string with & in the right and the wrong place. Only guessing here. Functionality wise it seems fine, just the display seems broken and it looks like a bug through user eyes.

hartwork commented 8 months ago

Hi again @j6t,

I did a little digging on this matter. I found:

What do you think?

Best, Sebastian

j6t commented 8 months ago

I am not on Windows, for that matter. I use openSUSE and KDE (not Gnome). The statement on that site is clearly not up-to-date. I even observe the behavior in the menu bar of VS Code, which I would not expect to be based on Qt, or Gnome. shrug

I could live with the hotkeys disabled in all QDockWidgets, but everywhere else (dialogs, menus...) they must remain, of course.

hartwork commented 8 months ago

I am not on Windows, for that matter. I use openSUSE and KDE (not Gnome). The statement on that site is clearly not up-to-date. I even observe the behavior in the menu bar of VS Code, which I would not expect to be based on Qt, or Gnome. shrug

@j6t interesting, thanks for the clarification!

PS: I'm on XFCE on Gentoo.

I could live with the hotkeys disabled in all QDockWidgets, but everywhere else (dialogs, menus...) they must remain, of course.

It would be easy to patch createDockWidget to exclude these widgets but losing the accelerators is probably worse than getting rid of the & display artefacts at the moment. I think I'd vote to postpone this until after adding support for Qt 6.

PS: Is anything left blocking #31 and #32 to merge? I'd be happy to improve anything that still needs improvement.

j6t commented 8 months ago

PS: Is anything left blocking #31 and #32 to merge? I'd be happy to improve anything that still needs improvement.

Nothing obvious, yet. I just take my time.