Overriding default Cntl Shift Drag Behavior

Control Shift Drag cancels out the whole drag operation if i m not wrong.. How can i disable this..

This change seemed to work for me
          table = new JTable(data, names){
               int prevRow = -1;
               //override the default selection behavior
               public void changeSelection(int rowIndex, int columnIndex, boolean toggle, boolean extend) {
                    if(ctrlDown){
                         //ctrl + dragging should add the dragged interval to the selection
                         if ( rowIndex != prevRow ) {
                              prevRow = rowIndex;
                              super.changeSelection(rowIndex, columnIndex, true, false);
                    else{
                         //clicking adds a row to the selection without clearing others
                         //dragging without holding ctrl clears the selection
                         //and starts a new selection at the dragged interval
                         super.changeSelection(rowIndex, columnIndex, !extend, extend);
          };

Similar Messages

  • Override shift-scrollwheel behavior in CS3/CS4?

    Does anyone know offhand if it is possible to override the shift-scrollwheel behavior via plugin creation or scripting in CS3/CS4?
    The CS3/CS4 "scroll real fast" behavior breaks Macintosh user interface conventions hugely (in the rest of the operating system shift-scrollwheel is attached to scroll horizontally).
    Thanks in advance,
    Eric.

    Would also like to know this. Scrolling is already too fast with a magic mouse, if I happen to be holding shift when I touch the mouse I will find myself suddenly at one end of the document wondering what went wrong.

  • Lion Terminal Application key sequence "cntl-shift-E-c-." doesn't work???

    This key sequence "control shift E c ." terminates my Linux console application session which used to control a second Linux session
    If I am unable to enter it, I must end the terminal window to end the console session
    The sequence worked on Snow Leopard by default, but does not work on the Lion Terminal Appication
    I get a "beep" when entering the E
    Anyone solved this problem?
    Thanks,
    ...Jim

    Thanks for your insights
    Although I haven't tried it yet, I think the "Return-Tilda-Period" sequence will drop my ssh connection
    made to my desktop linux system (where I was running the console command) and end the console command
    I really wanted to preserve the terminal log files on the MacBookPro
    I went to the Los Gatos Apple Store Genius bar this morning with 2 MacBookPros (Lion and Snow Leopard)
    After a lot of experimentation, DJ was able to discover that control prefaced commands are insensitive
    to case on Lion. They are always upper case.  So am able to terminate the console command run
    from an ssh session on my desktop linux workstation using Terminal from the the MacBookPro (Lion)
    using the sequence cntl-e-. which is passed through
    Control C will not work, this sequence cntl-Ec puts the input into a mode where around 20 commands
    can be passed to the console application.  These commands include buffer playback form the console
    input-output log, bumping a user who had attached before you, disconnect, and some others
    Background:
    The linux "console" application attaches the caller to the serial console port of a connected linux system
    The sequence with the shift key I use on a lot of terminal emulatiors (Windows putty, other linux terminal
    simulators, the "Termainal" app on Snow Leopard all accepted this command sequence (cntl-shift-E-c-.)
    and passed it to the application that was connected.  Now I am able to disconnect from Lion without killing
    the MacBookPro Terminal session

  • Shift-Drag and Option Drag not working

    I am using InDesign CC and my Shift-Drag to constrain in a direction has stopped working. Also my Option-Drag to duplicate has stopped working. Both work fine in Illustrator. Any help is appreciated....

    It happens to me also, when I have external devices connected, like a beamer, a second screen, etc. Happens not with every device, but with some of them. Very bad situation if you make presentations or consulting and no shortcut works from one moment to the next.
    I have not discovered exactly what this problem is causing, otherwise I would have filed a bug repaort against it to Adobe.

  • Problem overriding default JSF conversion error messages

    Hello !
    I have a problem to override default JSF conversation error message. I have an inputText which is binded to BigDecimal attribute, so when I enter a character in that field I get this error message: "- Conversion failed."
    I think I need to register the message bundle in my faces config, and put the key of this error message to my properties file.. am I right ?
    Can somebody help me with this ? Which key I need to put into the properties file ?
    Miljan

    Get [Sun's Java EE tutorial |https://www.sun.com/offers/details/JavaEETutorial.xml?cid=20090723ZA_TACO_JVEE_0004] and read the relevant section so you don't have to guess what you need to do.

  • Why doesn't Shift+Drag scale a pic proportionally?

    What is this? Shift + Drag doesn't scale a picture proportionally?
    In every other Adobe application, combining Shift and Dragging scales a picture proportionally.
    OK, then, so how DO I scale a picture proportionally?
    (Muse 2014, OSX)
    Thanks-
    (EDIT)
    OMG - Now I see. if I DON'T hold the Shift key, the picture scales proportionally. What planet am I on? Who at Adobe thought re-writing this universally accepted standard should be reversed in Muse?

    This should have been done in every application a long time ago!
    Normally scaling proportionally is the first choice. I can't remember, when I have willingly scaled an image unproportionally. And why using modifier keys for standard and no modifier for exceptions?
    I assume, this is the way, Muse engineers are thinking.

  • CS3 Subselection Tool Shift Drag?

    Is it just me or is it impossible to constrain the movement of points selected with the Subselection Tool by Shift-Drag?
    Properties window also does not show x and y for a collection of points selected with the the Subselection Tool and the same points do not Snap to Guides regardless of setting in Snapping. This leaves only the Arrow Keys as the way to move a collection of points with certainty that x or y will stay the same. VERY tiresome. Is this just the way it is or can this situation be fixed?
    Any thoughts?
    Flash CS3 Pro, OS X 10.4.11

    The Smudge tool simulates the effect you see when you drag a finger through wet paint. The tool picks up color where the stroke begins and pushes it in the direction you drag.
    Select the Smudge tool .
    Choose a brush tip and options for the blending mode in the options bar.
    Select Sample All Layers in the options bar to smudge using color data from all visible layers. If this is deselected, the Smudge tool uses colors from only the active layer.
    Select Finger Painting in the options bar to smudge using the foreground color at the beginning of each stroke. If this is deselected, the Smudge tool uses the color under the pointer at the beginning of each stroke.
    Drag in the image to smudge the pixels.Press Alt (Windows) or Option (Mac OS) as you drag with the Smudge tool to use the Finger Painting option.
    Resetting the smudge tool might do by Ctrl+Left click on the smudge icon in the tool options bar and select Reset Tool.

  • Option-Shift Drag sets position to 1 1 1 1: Bug or feature?

    When I option-shift drag on a region's position in the Event List, it sets the position to 1 1 1 1. Just curious if this is a bug or a feature? Despite the fact that I have found a use for this, it doesn't make a whole lot of sense for Logic to act this way. Thanks.
    -Ben

    Well it looks like your exact problem is listed on that incompatibility list:
    JDBC - As of 5.0, comparing a java.sql.Timestamp to a java.util.Date by invoking compareTo on the Timestamp results in a ClassCastException. For example, the following code successfully compares a Timestamp and Date in 1.4.2, but fails with an exception in 5.0:
    aTimeStamp.compareTo(aDate) //NO LONGER WORKS
    This change affects even pre-compiled code, resulting in a binary compatibility problem where compiled code that used to run under earlier releases fails in 5.0. We expect to fix this problem in a future release.
    For more information, see bug 5103041.
    Michael Bishop

  • Shift Dragging to keep alignment NOT WORKING

    Just upgraded from CS2 to CS4. In CS2 we were able to shift drag and have the object stay in alignment from top to bottom as well as left to right. In CS4 it only keeps it in alignment from left to right. Any way around this?

    I can see how it could possibly be a bug. We just upgraded yesterday and have seen some other little issues as well. I did try dragging it from the corner as someone suggested and after that it started working all the time, no matter where I drag it from.
    I think it's a combination of problems. One being that if the Smart Guides see something it can align with they automatically bump the object to the recommended alignment. I can't seem to force it not to do that unless I turn Smart Guides off. The second problem I think is that I was shift+dragging to the left and it would work, then I would want to drag it down and it would get confused. If I drag to the left and stop, then drag up or down it seems to work.
    Sounds like it's mostly user error!

  • Problem when overriding default skin of Flex

    Hi all,
    I tried to change the default style of Flex by redefining the css file. To Button, I add some different images to different status. Because Combo, ColorPicker are all inherited from Button, they all have the same style like Button has, even if I define new style for Combo as well.
    How to avoid this scenario? What is the right way to overriding default skin?
    Thanks and regards,
    Yan

    Hi there,
    I played around with skinning a few months ago too but I didn't run over this problem. Check this article: http://www.adobe.com/devnet/flex/articles/flex_skins.html I don't know how are you replacing the default icons but what I did, was to build my skins from scratch with the help of the template of Flex skins for Photoshop, saved each skin as a .png file and everything worked fine.
    With best regards,
    Barna Biro
    Blog: http://blog.wisebisoft.com

  • Override Default Page Activation Workflow

    Hello,
    I am trying to override the default handling of Authors requesting page activations.  By default, an Author that doesn’t have Replication privileges has the request sent to the Admin group.  We’ve created several workflows specifically for different groups since each has their own approval flow:
    CQ User Group                 CQ Workflow
    Consumer >>                     Consumer Approval Workflow
    eCRM >>                             Consumer Approval Workflow
    Business >>                        Business Approval Workflow
    I realize the Author could select the workflow from the Sidekick, but I need ot ensure the correct workflow is assigned if they simply click “Activate” from the Sidekick or the Site Admin (Websites) page.  What’s the best way to accomplish this – writing some sort of servlet, using the Dynamic Participant Step, something else?  The logic would be fairly straight forward – on activation request, check user group and assign page to pre-defined workflow and initiate.

    You can set this in version 5.1.
    Thanks,
    Michael
    Michael Girdley
    BEA Systems Inc
    "anil" <[email protected]> wrote in message
    news:399aba85$[email protected]..
    How we can override default error page (404) in WebLogic ver 4.5.1 ? Wehave already set property weblogic.httpd.errorPage.404=URL in
    weblogic.properties file , but it is not working with 4.5.1
    >
    We would like to have solution in properties setting, because changing thecode is not possible
    >
    Thanks in Advance
    anil

  • Unexpected Shift+parent Behavior - AE CC

    Todd mentioned that shift+parent has some new functionality in the "What's New" post.
    (http://blogs.adobe.com/aftereffects/2013/04/whats-new-changed-after-effects-next.html - See "changes to Shift+parenting behavior:")
    However, I've noticed another change that is less than desirable.  When shift+parenting, the child layer jumps to the comp center coordinates (eg. [960, 540]) instead of the anchor point coordinates of the parent as it would in CS6.
    Is this intended and/or should I report a bug?

    I think you are misinterpreting what it says in the explanation. Let's say your child layer is at 200, 200 and the parent layer is at 400, 400. If you hold down the shift key and select the parent layer the child layer will move to 400, 400 in the comp window. This happens whether or not the child layer was previously connected to the same or a different parent layer.
    After holding down the shift key and selecting a parent the position of both layers should be the same. The position values may not be the same, but the actual position should be. In other words if you child layer and your parent layer were both 200 pixels square they should overlap perfectly when using the shift + select parent feature as long as the anchor points for both layers are the same are the same.

  • Overriding Default JTable Selection Behavior

    I'm attempting to override the default selection behavior of a JTable. For clicking, I want the table to behave basically as if the ctrl key was being held down all the time. That works great.
    I want the behavior of dragging a selection to behave a certain way as well. If ctrl is not held down, then a drag should cancel the current selection and start a new one at the drag interval. This works fine too.
    However, if ctrl is held down during a drag, I want the dragged interval to be added to the selection instead of replacing it. This almost works. However, if I hold ctrl while dragging, it no longer let's me "undrag" the selection: once a cell is inside the dragged interval, it's selected, even if you drag back over it to deselect it.
    I understand why that's happening given my approach, but I'm looking for a way around it. Does anybody have any ideas about how to get a JTable to behave the way I want?
    Here's a compilable program that demonstrates what I'm doing:
    import javax.swing.*;
    import java.awt.event.*;
    public class TestTableSelection{
         boolean ctrlDown = false;
         JTable table;
         public TestTableSelection(){
              JFrame frame = new JFrame("Test Table Selection");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              //give the table random data
              String [][] data = new String [10][5];
              String [] names = new String [5];
              for(int i = 0; i < 5; i++){
                   names[i] = "C: " + i;
                   for(int j = 0; j < 10; j++){
                        data[j] = "t: " + (int)(Math.random()*100);
              table = new JTable(data, names){
                   //override the default selection behavior
                   public void changeSelection(int rowIndex, int columnIndex, boolean toggle, boolean extend) {
                        if(ctrlDown){
                             //ctrl + dragging should add the dragged interval to the selection
                             super.changeSelection(rowIndex, columnIndex, toggle, extend);     
                        else{
                             //clicking adds a row to the selection without clearing others
                             //dragging without holding ctrl clears the selection
                             //and starts a new selection at the dragged interval
                             super.changeSelection(rowIndex, columnIndex, !extend, extend);
              //keep track of when ctrl is held down
              table.addKeyListener(new KeyAdapter() {
                   public void keyPressed(KeyEvent e) {
                        ctrlDown = e.isControlDown();
                   public void keyReleased(KeyEvent e){
                        ctrlDown = e.isControlDown();
              frame.getContentPane().add(new JScrollPane(table));
              frame.setSize(250, 250);
              frame.setVisible(true);
         public static void main(String[] args){
              new TestTableSelection();
    Let me know if any of that isn't clear.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    This change seemed to work for me
              table = new JTable(data, names){
                   int prevRow = -1;
                   //override the default selection behavior
                   public void changeSelection(int rowIndex, int columnIndex, boolean toggle, boolean extend) {
                        if(ctrlDown){
                             //ctrl + dragging should add the dragged interval to the selection
                             if ( rowIndex != prevRow ) {
                                  prevRow = rowIndex;
                                  super.changeSelection(rowIndex, columnIndex, true, false);
                        else{
                             //clicking adds a row to the selection without clearing others
                             //dragging without holding ctrl clears the selection
                             //and starts a new selection at the dragged interval
                             super.changeSelection(rowIndex, columnIndex, !extend, extend);
              };

  • Changing (overriding) default behavior of  af:inputText

    Hi all,
    Is it possible to change the default behavior of the <af:inputText> or add a new one by overriding CoreInputText . e.g: like oracle forms, enter button to navigate to next item.
    Thanks in advance,
    Ahmad Esbita

    InputTexts are more than enough for me, but I was wondering if I can add some kind of functionality to them and if yes, how ?
    In my post the example was :"enter button to navigate" , some people are used to the idea of enter button navigation such as accountants ,they also relay on the mouse poorly when they are working,and what if we are asked to provide this property, and thats all.
    Regards,
    Ahmad Esbita

  • Override default values for infotype 0009 (Bank Details)

    Dear all,
    When we create a new bank details, default value will populate.
    I would like to know how to override these value, dynamic action? User exist? Feature? Or something else?
    Thanks in advance
    Regards
    Bill

    Hi Sikindar,
    Thanks for the reply, am trying to understand the options available.
    It look like the current behavior is: INITS + RUFNM
    and the user want to change it into: INITS only
    And it should only apply to country group 28
    Regards
    Bill

Maybe you are looking for