Apache OpenOffice (AOO) Bugzilla – Issue 79712
it must be possible to disable the accelarator also for awt/controls
Last modified: 2008-03-12 10:32:42 UTC
In vcl when using the win bits "WB_NOLABEL" the accelerator for each control can be disabled. So this has to be supported by the awt/toolkit also, so that every extension can turn of the accelerator feature.
cd: Accepted.
Created attachment 49442 [details] All of the changes are involved in the two modules: toolkit and offapi.
liangweike->cd: Thank you for your instruction.
cd: Set issue to patch, provided by liangweike.
cd: Patch integrated into fwk78.
cd->jsk: Please verify. This patch adds a new property "NoLabel" where you can enable/disable the automatic shortcut feature from VCL. VCL adds shortcuts (a underscore for the character that can be activated using ALT+char ) to labels which are in front of an edit or other controls that can receive the focus. If the property is set to "true" no underscore should be visible.
Fixed but failed. On Linux we have two possible states 1) No label = No -> the expected underscore is present 2) No label = Yes -> we have a ~ before the label
Created attachment 49763 [details] Image of faulty behavior
BTW: Why do we work with a double negation here? Would it not be more smart to name the property "Add accelerator" with the default "Yes"? (or something like that?)
The control tested is the "command button", platform is Linux (Fedora 7)
cd: Fixed. The new property is only supported by the "Fixed Text" control. Therefore the properties have to be removed from all other controls.
cd->jsk: Please verify.
Verified, only the fixed text now has the new attribute
Created attachment 49781 [details] Now the new property is removed from all the controls except "FixedText".
Closed