Issue 72558 - In interface XAcceleratorConfiguration Methode removeCommandFromAllKeyEvents dos not remove the specified command.
Summary: In interface XAcceleratorConfiguration Methode removeCommandFromAllKeyEvents ...
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC All
: P3 Trivial
Target Milestone: ---
Assignee: chne
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-14 08:55 UTC by baumux
Modified: 2013-02-24 21:07 UTC (History)
4 users (show)

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


Attachments
This is the fix patch about this issue. (1.20 KB, text/plain)
2007-09-03 07:22 UTC, wuyan.ooorg
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
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