Apache OpenOffice (AOO) Bugzilla – Issue 72558
In interface XAcceleratorConfiguration Methode removeCommandFromAllKeyEvents dos not remove the specified command.
Last modified: 2013-02-24 21:07:28 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
jsc -> cd: i assume that it is your area, can you please check
cd->as: Could you please check if this issue is related to your code.
.
Created attachment 47922 [details] This is the fix patch about this issue.
AS: Fixed now. wuy ... thanks a lot for the patch.
AS->CN: Please verify this task on the cws fwk72. THX.
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
ok in master => close