Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Problem registering Ctrl+F5 keybinding
Problem registering Ctrl+F5 keybinding [message #289541] Mon, 08 August 2005 07:11 Go to next message
Eclipse UserFriend
Originally posted by: jsetya.yahoo.com

Hi,

I'm trying to register Ctrl+F5 as accelerator in one of my menu items. But
the accelerator wouldn't show up next to the menu item text, I try to
bind another key (Shift+N) and it works fine.

Here's my plugin.xml :

<command id="com.farbeyond.core.commands.record.refresh.detail"
name="Refresh Detail"
description="Command to refresh detail"
categoryId="org.eclipse.ui.category.navigate"/>

<keyBinding commandId="com.farbeyond.core.commands.record.refresh.detail "
keyConfigurationId="org.eclipse.ui.defaultAcceleratorConfiguration "
keySequence="Ctrl+F5"/>

<action id="menu.record.refresh.detail.id"
class="com.farbeyond.core.actions.Record"
label="Refresh Detail"
definitionId="org.eclipse.ui.file.refresh.detail"
icon="icons/refreshdetail.gif"
disabledIcon="icons/disabledrefreshdetail.gif"
menubarPath="menu.record.id/Group6"
retarget="true"
tooltip="Refresh Detail"/>

I also set -debug option when running application and here's the result :

KEYS >>> Listener.handleEvent(type = KeyDown, stateMask = 0x0, keyCode =
0x40000, time = 7a3144, character = 0x0)
KEYS >>> Listener.handleEvent(type = KeyDown, stateMask = 0x40000, keyCode
= 0x100000e, time = 7a341f, character = 0x0)
KEYS >>> WorkbenchKeyboard.press(potentialKeyStrokes = [CTRL+F5, CTRL+@])
KEYS >>> WorkbenchKeyboard.executeCommand(commandId =
'com.farbeyond.core.commands.record.refresh.detail')
KEYS >>> not handled
KEYS >>> Listener.handleEvent(type = KeyDown, stateMask = 0x0, keyCode =
0x10000, time = 7a368c, character = 0x0)


The following lines comes from keybinding that's successfully bound
(Shift+N) :
KEYS >>> Listener.handleEvent(type = KeyDown, stateMask = 0x0, keyCode =
0x20000, time = 7ab2de, character = 0x0)
KEYS >>> Listener.handleEvent(type = KeyDown, stateMask = 0x20000, keyCode
= 0x6e, time = 7ab37e, character = 0x4e)
KEYS >>> WorkbenchKeyboard.press(potentialKeyStrokes = [SHIFT+N])
KEYS >>> WorkbenchKeyboard.executeCommand(commandId =
'com.farbeyond.core.commands.edit.new.detail')
COMMANDS >>> executing
'org.eclipse.ui.internal.commands.LegacyHandlerWrapper'(1433 4041)
KEYS >>> Listener.handleEvent(type = KeyDown, stateMask = 0x0, keyCode =
0x10000, time = 7ab70e, character = 0x0)

What's wrong ?

Any help would be greatly appreciated.


Thanks in advance

Setya
Re: Problem registering Ctrl+F5 keybinding [message #289557 is a reply to message #289541] Mon, 08 August 2005 09:19 Go to previous message
Eclipse UserFriend
Originally posted by: jsetya.yahoo.com

Sorry, my fault :

<action id="menu.record.refresh.detail.id"
definitionId="org.eclipse.ui.file.refresh.detail"

should be :

<action id="menu.record.refresh.detail.id"
definitionId="com.farbeyond.core.commands.record.refresh.detail "

Regards,


Setya
Previous Topic:building help search index
Next Topic:Console plugin - Howto?
Goto Forum:
  


Current Time: Fri Apr 26 17:10:52 GMT 2024

Powered by FUDForum. Page generated in 0.03305 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top