TMenuItem ShortCut do not function properly in Linux
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
TMenuItems do not always respond to their shortcuts in Linux.
If an "editable" control (like TEdit) has focus, shortcuts like Ctrl+F do not work anymore.
I stumbled on this when I found out that I could not get Ctrl+A and Ctrl+F to work in a editor-like application I was building.
I build a testcase to see what was going on.
Steps to reproduce:
Testing the following TMeniItem shortcuts (in a TMainMenu):
Ctrl+F
Alt+F
Ctrl+Alt+F
Ctrl+Shift+F
Alt+Shift+F
Ctrl+1 (that is Ctrl+ the number 1, not the letter l)
Alt+1
Ctrl+Alt+1
Ctrl+Shift+1
Alt+Shift+1
F1
Ctrl+F1
Alt+F1
Ctrl+Alt+F1
Ctrl+Shift+F1
Alt+Shift+F1
on a form with the following components:
- a TEdit
- a TMemo
- a TSynEdit (all KeyStrokes removed through Object Inspector)
- a TListbox
- a TCombobox
- a TStringGrid
- a TSpinEdit
- a TButton
Results
Delhi 3.0 Pro
All controls: All shorcuts work, no matter what control has focus.
Lazarus Windows
If TSynEdit has focus: Ctrl+1, Ctrl+Shift+1 don't work (even though all Keystrokes have been removed)
(it seems that Lazarus does not really remove the Keystrokes, after compilation the 80 or so default Keystrokes are right back in the Object Inspector. I reported this as a separate bug.)
Lazarus Linux
(Not tested the F1 combinations, cause they have special meening in (my) Linux)
There seems to be no consistency in the behaviour of the shortcuts.
Most of the time the shortcuts work, but only when a "non-editable" control (like a TButton) has the focus.
However if an "edit-able" control like TEdit or TMemo has the focus, Ctrl+F and Alt+F do not seem to work.
There are times however when (almost) all shortcuts do not function any longer, even if they functioned only a few keystrokes before.
Setting the forms KeyPreview to true reveals that the form does "see" the keystrokes (even when all shortcuts fail to work), but the TMenuItems do not respond to them.
Additional information:
I have posted this issue at least two times on the forum to get some feedback, but got no reaction at all.
It may very well be possible that the issue merely is a problem with my Suse 10.0 distro, which I run on a Intel Celeron 700 Mhz (production year 2001) with 512 Mb RAM. I have no access to any other Linux system to test this bug.
Mantis conversion info:
- Mantis ID: 7306
- OS: Suse Linux
- OS Build: 10.0
- Build: 9396 on Win32
- Platform: i386
- Version: 0.9.16
- Monitored by: » etrusco (Flávio Etrusco)
- Target version: 1.0.0
- LazTarget: 1.0