Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Keyboard events during Mouse drags

I am hooking mouse events.  I have not seen anything that I would consider
a bug.  I was just looking for advice on blocking the delete and possible
all other keystrokes.



|---------+---------------------------------->
|         |           Veronika_Irvine@xxxxxxx|
|         |           Sent by:               |
|         |           platform-swt-dev-admin@|
|         |           eclipse.org            |
|         |                                  |
|         |                                  |
|         |           05/15/2002 03:09 PM    |
|         |           Please respond to      |
|         |           platform-swt-dev       |
|         |                                  |
|---------+---------------------------------->
  >-----------------------------------------------------------------------------------------------------------|
  |                                                                                                           |
  |       To:       platform-swt-dev@xxxxxxxxxxx                                                              |
  |       cc:                                                                                                 |
  |       Subject:  Re: [platform-swt-dev] Keyboard events during Mouse drags                                 |
  |                                                                                                           |
  |                                                                                                           |
  >-----------------------------------------------------------------------------------------------------------|




Are using DND or are you hooking mouse events?

Please enter a bug report with an example.


                                                                          
   "Randy Hudson"                                                         
   <hudsonr@xxxxxxxxxx>                 To:                               
   Sent by:                     platform-swt-dev@xxxxxxxxxxx              
   platform-swt-dev-admin@eclip         cc:                               
   se.org                               Subject:                          
                                [platform-swt-dev] Keyboard events during 
                                Mouse drags                               
   15/05/2002 01:56 PM                                                    
   Please respond to                                                      
   platform-swt-dev                                                       
                                                                          




In the Graphical Editor Framework, objects are dragged on MousePressed ->
MouseDragging -> MouseReleased.
During the drag, things like Control+Z for undo don't work for some reason.
This is good, because undo might delete the object as it is being dragged
(and therefore active in the role of showing feedback).

However, Global Action DELETE is not a virtual accelerator on the Shell.
Consequently, we've implemented it using a KeyListener or the Canvas.
Delete is *NOT* blocked during a drag like accelerators were, and we can
get exceptions if delete occurs during a drag.

Can anything be done to prevent Delete from occuring?
Also, during keyboard drags, we setMouseCapture, which also blocks
accelerators from occuring even though the user has not touched the mouse
at all.  It this blocking of accelerators on mouse Drag/Capture consistent
across platforms?

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






Back to the top