Issue 72558

Summary: In interface XAcceleratorConfiguration Methode removeCommandFromAllKeyEvents dos not remove the specified command.
Product: App Dev Reporter: baumux <baumux>
Component: apiAssignee: chne
Status: CLOSED FIXED QA Contact: issues@api <issues>
Severity: Trivial    
Priority: P3 CC: chris_mux, chrlutz, issues, mux2005
Version: 3.3.0 or older (OOo)   
Target Milestone: ---   
Hardware: PC   
OS: All   
Issue Type: PATCH Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
This is the fix patch about this issue. none

Description baumux 2006-12-14 08:55:11 UTC
The Methode removeCommandFromAllKeyEvents dos not remove the specified command.  

A short OOo-Basic example:

Sub removeShortcutDoesntWork()
	modUIcms = createUnoService("com.sun.star.ui.ModuleUIConfigurationManagerSupplier")
	cfgMgr = modUIcms.getUIConfigurationManager("com.sun.star.text.TextDocument")
	shortcutMgr = cfgMgr.getShortcutManager()
	
	shortcutMgr.removeCommandFromAllKeyEvents(".uno:JumpToNextFrame")
	shortcutMgr.store()
End Sub
Comment 1 jsc 2006-12-18 12:11:27 UTC
jsc -> cd: i assume that it is your area, can you please check
Comment 2 carsten.driesner 2007-01-18 13:28:49 UTC
cd->as: Could you please check if this issue is related to your code.
Comment 3 andreas.schluens 2007-07-31 12:46:30 UTC
.
Comment 4 wuyan.ooorg 2007-09-03 07:22:39 UTC
Created attachment 47922 [details]
This is the fix patch about this issue.
Comment 5 andreas.schluens 2007-09-06 12:40:45 UTC
AS: Fixed now. wuy ... thanks a lot for the patch.
Comment 6 andreas.schluens 2007-10-01 08:37:43 UTC
AS->CN: Please verify this task on the cws fwk72. THX.
Comment 7 chne 2007-10-09 11:35:48 UTC
ok in fwk72

Sub removeShortcutDoesntWork()
	modUIcms = createUnoService("com.sun.star.ui.ModuleUIConfigurationManagerSupplier")
	cfgMgr = modUIcms.getUIConfigurationManager("com.sun.star.text.TextDocument")
	shortcutMgr = cfgMgr.getShortcutManager()
	
	lEvents() = shortcutMgr.getKeyEventsByCommand(".uno:JumpToNextFrame")
	msgbox ubound(lEvents())
	
	shortcutMgr.removeCommandFromAllKeyEvents(".uno:JumpToNextFrame")
	shortcutMgr.store()
	
	lEvents() = shortcutMgr.getKeyEventsByCommand(".uno:JumpToNextFrame")
	msgbox ubound(lEvents())
End Sub
Comment 8 chne 2007-11-30 20:40:18 UTC
ok in master => close