Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-ui-dev] Fw: [platform-swt-dev] Key listener and Global actions in Eclipse.


I have several questions.  First of all, why is there still experimental API at this point?  Supposedly, M6 was the deadline for all breaking changes.  So I don't see how API which is available in M7 could be backed out.

Second, related to the original post, I have a Tool which would like to receive ALT+RIGHT whenever the user is using "keyboard accessibility" to drag objects as an alternative to using the mouse.  ALT is a modifier which means "don't snap to grid, etc".  CTRL is also a modifier meaning "clone", SHIFT = "constrained" operation.  So, I need the ability to temporarily receive these keystrokes regardless of keybindings.

Another issue with GEF and keybindings is our Palette.  We would like tools to be reached with a single key, such as "C" activates the connection tool.  If we use a keybinding, then the letter C cannot be typed anywhere in the editor, *even* if we make the associated action disabled.  If we don't use a keybinding, the user cannot modify the actual binding for the tool, so we have to re-invent the keybinding preference page.

I'm pretty sure Nick said that if the action bound to a keybinding is disabled (or bound to NULL), then the keybinding service would stop consuming that key.  But this is not the behavior we are seeing.  For example, we also need to receive CTRL+SPACE, which has universal meaning of "toggle selection" of item with focus. But the keybinding for Content Assist is getting in the way. Why do native Trees and Tables receive CTRL+SPACE, but our Canvas does not?

Thanks,
Randy

----- Forwarded by Randy Hudson/Raleigh/IBM on 02/23/2004 12:51 PM -----
Nick Edgar <Nick_Edgar@xxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx

02/23/2004 09:33 AM
Please respond to platform-swt-dev

       
        To:        platform-swt-dev@xxxxxxxxxxx
        cc:        
        Subject:        Re: [platform-swt-dev] Key listener and Global actions in Eclipse.



Or if you just want to hook a handler for the existing Back/Forward
actions (menu items Navigate > Back and Navigate > Forward, which are
bound to Alt+Left Arrow and Alt+Right Arrow by default), use:
myEditorOrView.getSite().getActionBars().
setGlobalActionHandler(ActionFactory.BACK.getId(), handlingAction);






Douglas Pollock <douglas.pollock@xxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx
02/23/2004 09:21 AM
Please respond to
platform-swt-dev


To
platform-swt-dev@xxxxxxxxxxx
cc

Subject
Re: [platform-swt-dev] Key listener and Global actions in Eclipse.






-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On February 23, 2004 07:22 am, Arnaud De Muyser wrote:
> Is there a way to get the key stroke prior Eclipse's binding service ?

These kinds of questions should be asked on the newsgroup.

workbench.getCommandSupport().setKeyFilterEnabled(false);

Though IWorkbenchCommandSupport is still experimental API (i.e., we
haven't
decided that this will be the final API for 3.0).  If you have comments
about
this API (e.g., missing functionality, etc.), please open a bug report
against Platform UI.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAOgxhLhh1LVU8SusRAv5GAJ9C4M09TTdN7F8TUewrb4lTlLH8EwCfa4GS
6Lt0+GVOCWKhCh6xS6ITn68=
=f1x1
-----END PGP SIGNATURE-----
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev


_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev

Back to the top