|
|
Re: Snap to Grid and arrow keys [message #144009 is a reply to message #143827] |
Thu, 22 July 2004 18:13 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
But also open a bugzilla feature request too.
"Pratik Shah" <ppshah@us.ibm.com> wrote in message
news:cdmltb$34l$1@eclipse.org...
> Look at DragEditPartsTracker#handleKeyDown(KeyEvent). If an arrow key is
> pressed (acceptArrowKey(e)), it determines the amount by which to move the
> part by invoking accGetStep(). You'd have to override this default
> behaviour IFF the grid is enabled. Since accGetStep is package protected,
> just override handleKeyDown and move the mouse by horizontal or vertical
> grid spacing. You'll have to do the same for ResizeTracker if you want
the
> same effect during resizing.
>
>
> "Jody Schofield" <jodyschofield@rogers.com> wrote in message
> news:cdmhs7$rgo$1@eclipse.org...
> > When snap to grid is enabled and the user uses the keyboard (i.e. '.'
then
> > left/right/up/down arrow), is there a way to get one keystroke equal to
> one
> > grid spacing?
> >
> > thanks,
> >
> > Jody
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03553 seconds