Issue 71154 - keyboard shortcut not displayed in a submenu created dynamically
Summary: keyboard shortcut not displayed in a submenu created dynamically
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: thorsten.martens
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-03 13:57 UTC by julieng
Modified: 2013-02-24 21:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
OOBasic macro ("Main") creating submenu and assigning key shortcut (9.45 KB, application/vnd.oasis.opendocument.text)
2006-11-03 14:08 UTC, julieng
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description julieng 2006-11-03 13:57:33 UTC
I summarize below how to create a new menu and assign a keyboard shortcut.
I have attached a OOBasic macro that implements these steps, and shows the bug.

a) A new menu can be created dynamically by using the "LayoutManager" property of the frame with a 
menu bar into which you want to insert it.
(there are sample codes for this)

b) Create a new popup menu with one item, and attach this menu either at the top-level of the menu 
bar, or as a submenu line in an existing OO menu.

c) Declare a keyboard shortcut (for instance Ctrl+F11) with the same command URL as the one of the 
menu item of the popup menu.

This is done using com::sun::star::ui::XAcceleratorConfiguration.

d) The shortcut is not displayed on the menu line of the item (but is effective; Ctrl+F11 triggers the 
command).

When the menu item is inserted at the first level of an existing menu (instead of inside a submenu, 
itself inserted), the shortcut is correctly displayed.
Comment 1 julieng 2006-11-03 14:08:46 UTC
Created attachment 40295 [details]
OOBasic macro ("Main") creating submenu and assigning key shortcut
Comment 2 carsten.driesner 2006-11-06 08:25:40 UTC
cd: Take over from jsc.
Comment 3 jsc 2006-11-06 08:30:31 UTC
new owner cd
Comment 4 carsten.driesner 2006-11-14 14:16:12 UTC
cd: Confirmed and accepted.
Comment 5 carsten.driesner 2007-01-09 09:26:09 UTC
cd: Fixed.
Comment 6 carsten.driesner 2007-01-17 08:45:19 UTC
cd->tm: Please verify this issue. You have to run the Basic macro inside the
attached document "issue 71154.odt". You should see a new popup menu on the
"File" menu which should have one entry with a shortcut.
Comment 7 thorsten.martens 2007-01-19 12:25:56 UTC
checked and verified in cws fwk58 -> OK !
Comment 8 thorsten.martens 2007-02-05 13:55:53 UTC
closed