[jbosstools-issues] [JBoss JIRA] (JBIDE-16636) allow drop without dialog from palette

Daniel Azarov (JIRA) issues at jboss.org
Thu Feb 27 20:07:47 EST 2014


    [ https://issues.jboss.org/browse/JBIDE-16636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12948462#comment-12948462 ] 

Daniel Azarov edited comment on JBIDE-16636 at 2/27/14 8:07 PM:
----------------------------------------------------------------

[~maxandersen], I faced some troubles when I tried to read Alt key:

UBUNTU:
There are two ways which I tried:
1. method dragOperationChanged in DropTargetListener - it works fine with *Ctrl* and *Shift* keys. It does not work with *Alt* key at all.
2. KeyListener - it works fine with any kind of key combinations, but it does not work during drag&drop at all.

One more thing - on Ubuntu if you press *Alt* and start dragging element from palette - Ubuntu will move current window. It looks like there is nothing we can do about it.

WINDOWS:
Method dragOperationChanged in DropTargetListener works fine with *Ctrl* and *Alt* keys. It does not work with *Shift* (called but does not change operation)

MacOs:
Method dragOperationChanged in DropTargetListener works fine only with *Alt/Option* key.
But if we go with *Ctrl* on Ubuntu and Window, *Ctrl* changes drop operation to *Copy* operation
On Mac - the same operation you can get with *Alt/Option* key (just as you asked)

Is it OK to have different keys on different operating systems (*Ctrl* for Linux and Windows and *Alt/Option* for Mac)for this feature?

WDYT?
                
      was (Author: dazarov):
    [~maxandersen], I faced some troubles when I tried to read Alt key:

UBUNTU:
There are two ways which I tried:
1. method dragOperationChanged in DropTargetListener - it works fine with *Ctrl* and *Shift* keys. It does not work with *Alt* key at all.
2. KeyListener - it works fine with any kind of key combinations, but it does not work during drag&drop at all.

One more thing - on Ubuntu if you press *Alt* and start dragging element from palette - Ubuntu will move current window. It looks like there is nothing we can do about it.

WINDOWS:
1. method dragOperationChanged in DropTargetListener - it works fine with *Ctrl* and *Alt* keys. It does not work with *Shift* (called but does not change operation)

MacOs:
If we go with *Ctrl* on Ubuntu and Window, *Ctrl* changes drop operation to *Copy* operation
On Mac - the same operation you can get with *Alt/Option* key (just as you asked)

Is it OK to have different keys on different operating systems (*Ctrl* for Linux and Windows and *Alt/Option* for Mac)for this feature?

WDYT?
                  
> allow drop without dialog from palette
> --------------------------------------
>
>                 Key: JBIDE-16636
>                 URL: https://issues.jboss.org/browse/JBIDE-16636
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: jsp/jsf/xml/html source editing
>            Reporter: Max Rydahl Andersen
>            Assignee: Daniel Azarov
>             Fix For: 4.2.0.Beta1
>
>
> sometimes when demoing or just trying a few things quickly or dragging trivial elements it would be nice being able to not have the wizard dialog show up.
> could we make it so when holding in Alt it will not show the dialog but just do whatever clicking the finish button would directly do ?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list