Patform independent key+mouse combinations

Hi,
I've got my own component I have written that allows someone to select multiple items by using a <mouse click> + <control key down> combination.
As you might guess, this was hard coded for Win32/Linux systems. Now I am deploying on Mac and the error of my ways is apparent.
On a Mac, this combination should be <mouse click> + <command key down>. Ooops. I could do more hard coding now with "if" statements and the like, but is that the right answer? Probably there is some way to associate different maps to my component like JTable does, depending on platform? What about mouse and key combinations?
As an example, I have found this http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/doc-files/Key-Index.html#JTable but aside from not knowing how to implement this type of thing, the listing is for key events only. Not mouse-key combinations.
Anyone have any ideas?

Do you have your mouse and keyboard plugged into a USB hub in your screen? If you do this, when you turn off the screen (or it goes into powersave), your mouse and keyboard will be disconnected, and reconnected when it turns back on. This should work fine anyway with hotplugging, but you can never be too sure...

Similar Messages

  • Control Key/Mouse Selecting

    I've recently updated my OS X software to 10.4.8 and have noticed a bug with the update. When trying to "label" a folder or item with a particular colour using the "Control" key and mouse combination, the usual drop down menu that should come up no longer does and the screen flips out as if the finder has been relaunched. I now have to go to the "File" menu to select the "Label" selections. I've run a diagnostic; permission repair and disk repair with everything being OK. This bug applies to all user accounts, and other iMacs that have been updated. Can't say how it applies to laptops or towers.
    iMac G5   Mac OS X (10.4.8)  

    You have a bad contextual menu item. Maybe some previously installed extension that is not compatible with 10.4.8
    Look in the "Contextual Menu Items" folder in "Library" at the top level of your disk.

  • How to create a document on a characteristic and key figure combination?

    Hello,
    I will need to create for my customer a document on a characteristic and key figure combination. I don't know yet which BW objects will be concerned, but I'm trying to understand how it works.
    1) I call the document screen in RSA1.
    2) I select InfoProvider data.
    3) I click on Create, enter a name and a description and go to the next register (Log.DOc.Properties).
    Question: What do I need to select here?
    According to SAP Help, the following has to be maintained:
    InfoProvider: How can I get my cube diplayed in the list?
    Query: Same question. But is it necessary to select a query?
    Key Figure: OK
    All characteristics for which the Characteristic is Document Property indicator is set: OK
    Hide Name: OK
    Thanks in advance for you help, Nathalie

    There's a link on the main support.mozilla.org page under "Customizing Firefox", to this article: [[How do I customize the toolbars?]] in case it helps you or anyone else finding this topic. It has a section on adding a new toolbar to Firefox.
    I can't help you on creating your own button, textfield and a combo box for the new toolbar but I see you (Dinesh) asked this question on Jan 5, here:
    http://groups.google.com/group/mozilla-labs-jetpack/browse_thread/thread/0d877e5afcbfe745# ''how to create a toolbar using add on sdk''

  • I went to import special characters in imovie '11 and now the character window comes up on every application, yet won't open in iMovie at all, it flashes across every screen on each key/mouse click

    I went to import special characters in imovie '11 and now the character window comes up on every application, yet won't open in iMovie at all, it flashes across every screen on each key/mouse click, stops the other software from running, and won't shut off, ever.

    Try trashing the .plist in Home/Library/Preferences which has CharacterPalette in its name.

  • Key-stroke combination to copy the text of a document position to another p

    Hello ,
    I would like to Know the way to copy the text of a document position to another document positions.
    I know that you can entry the character + , but I think that there is another way , a Key-stroke combination , could somebody give me some information about this ?
    Best Regards
    Olga

    Hello Olga,
    Unfortunately I believe that it is no other way in the screen directly, only the one mentioned by you.
    You can try use substitution (OB28) but then I am not sure if there is one logic that will work for all documents, like for example copy from line one to all other lines, maybe you can define an exit in the substituion.
    I hope it helps.
    Best Regards,
    Vanessa.

  • ULTRA 5 OPENBOOT serial console disabling - for the use of USB key/mouse

    I ve got an ULTRA 5, I installed a NEC USB PCI card in it, in works no problemo, I can use USB keyboard and mouse under X-WINDOWS (openbsd unix). But this works ONLY if I have classical SUN TYPE 5c keyboard attached.
    Then the system boots, starts X and I can use the USB devices (key/mouse) under Xwindows.
    But when I unplug the SUN TYPE keyboard out, and start the computer, I see just blank black screen on my monitor.
    The X , or anything starts not. The display screen is and stays blank.
    I think, this is because when I dont atach the SUN keyboard at the startup, the system switch output to the serial port console, am I right ???
    Please, how can I disable this option ???
    I want to use just the USB key/mouse. But when I start the system with no SUN TYPE keyboard, I see just black screen. What can I do with it?

    Hello.
    I could take a look on the document from SunSolve and they write you should set the input-device to ttya in OpenBoot:
    ok setenv input-device ttyaMaybe in the other case the serial port will check if there is really something connected to the ttya input port. If the system works if something is connected to ttya but it does not work if nothing is connected (neither keyboard nor null modem cable) this may be the case.
    Martin
    -- EDIT --
    The SunSolve stuff does not modify the X-Server configuration files but they modify the file /etc/system. They add a line like this to the file:
    set consconfig:usb_kb_path="/pci@1f,0/.../keyboard@1"
    set consconfig:usb_ms_path="/pci@1f,0/.../mouse@2"(Both paths are relative to "/devices" and begin with "/").
    This will make the keyboard usable even in the console login.

  • Add a comment to a query cell (Characteristic / Key Figure Combination)

    Hi Gurus
    Essentially we are attempting to allow users add a comment to a number they enter in an IP planning screen. 
    The issue we have is that when we add the comment using the standard right click functionality it is stored against the basic key figure, not the characteristic/key figure combination.  This means that the same comment will appear everywhere that key figure is used.
    Is there a way to make comments specific to characteristic/key figure combinations so that they would show against only that cell?
    Thanks
    Gareth

    Hello,
    have you tried the GRID reporting. if the structure of your report is fix you can use a formular for each cell.
    In we reporting you have the possibility to change the output of the report with the web table interface (user exit)
    I have no other idea.
    reg.
    Michael

  • Prevent games from grabbing every key & mouse button

    I've been gaming a lot of native linux games (especially the Humble Bundle ones), and a great deal of them tend to grab the all the keyboard and mouse keys/buttons.
    This means that NO keys work; for example, I've a mouse with lots of buttons, and some of these control my volume (via xbindkeys). Some media keys on my keyboard do this as well, and control vlc play/stop (also via xbindkeys), and some other switch desktop, minimize, etc (via compiz keybinds).
    Is there a way to keep these games for grabbing these keys/mouse-buttons? I kind of lose control of my desktop while they're running. I belive they grab the mouse entirely somehow, though I must admit, I'm not an expert on this area.

    I've made two AUR packages for this:
    https://aur.archlinux.org/packages.php? … _Search=Go
    I'm just using libx11-nokeyboardgrab now, so I let the sdl one go unmaintained.
    libx11-nokeyboardgrab is incompatible with dmenu (edit: and password screensavers), but works with everything (also dialog pop-ups).
    sdl-nokeyboardgrab doesn't grab non-sdl programs (Virtualbox, maybe Wine, I haven't tested it).
    It doesn't prevent mouse grab, because that's necessary for FPS games and Virtualbox mouse mode.
    I have thought of adding in a mechanism where the mouse is only grabbed on some condition. Like the existence of a "/tmp/grabmouse" file. But I've been fine without it.
    One problem that occurs even with mouse grab enabled is that when the game loses focus, it loses the mouse grab too. When you switch back to the game, you need to do something to make it re-grab the mouse.
    For instance in Urban Terror (FPS), when you switch back to the game, the mouse behaves erratic until you press ~ for Console (which normally ungrabs the mouse) and then press it again.
    Last edited by Procyon (2012-01-23 20:14:08)

  • Frame 7 question - arrow keys / mouse scroll wheel don't work

    I have FrameMaker version 7.0p579.
    I've not used FrameMaker for quite a while, but I know my arrow keys used to move graphic elements, but they don't now.  Perhaps it's because I now use USB mouse and keyboard?
    One other question -- was the upgrade from version 7.0 to 7.1 (or 7.n) a free upgrade?  If so, where can I get it?

    Hallo Framers,
    I have tried both FreeWheel and KatMouse for a few days.
    * Both work with Windows 7 (beta version which I happen to have at home) and XP; I have no access to Vista but I expect it is also OK.
    * KatMouse interferes with Firefox's "middle-click to open link in a new tab". However this can easily be disabled (Settings>WheelButton>NoneOfTheButtons)
    * Some graphic programs (CorelDraw for example) use the wheel for zooming; both interfere with this. However a single-click on the KatMouse icon disables/enables it.
    * FreeWheel is hard to find and it's not clear whether it's supported any more; KatMouse seems to be current.
    On balance I recommend (and myself use) KatMouse.
    --- Derek

  • Key not typing letter, but working with Apple key in combination with lette

    I have an Indigo iBook. Just today the "f" key has stopped working - at least for tying the letter itself. When I press it in combination with the Apple key however, I get the "find" box to come up, so in some way the key is working on the keyboard. We have removed the cap and directly pressed the plastic underneath; no difference. Slso hooked up an external keyboard - still no f!!!!!
    After searching the forums, we have found that many people have had luck removing their keyboard and checking the ribbon cable or the airport spring - do not want to do something so drastic if there is an easier fix.
    Thanks very much!
    iBook Indigo   Mac OS X (10.0.x)  

    Just an update if anyone has any more ideas - (troy enn - thanks, but nothing was assigned in my Universal Access to the f key).
    The f letter works in upper case, just not lower case. So, for now, I am just using the character palette, and inserting an f if I need it - thankfully, for some reason I don't seem to use it all that much!

  • Move tool issue : Command key + mouse dragging for moving any layer not working in PS CC

    I'm trying to move a layer within the document by holding command key and mouse dragging (mouse cursor not above the layer) is not working at all while using move tool. Suddenly this functionality stopped working. Now I have to place my cursor on layer to be move and drag with mouse. Also pressing command key changing auto select option from layer to group.
    Please help.

    Usually when a tool is not working as expected, a Reset of that tool might be the answer.
    Select the move tool in the toolbox,
    Go to the move tool icon on the top left of the screen (just above the toolbox in its' Option bar) and Ctrl-click on it to get the Reset menu.
    Click on Reset Tool.

  • Key events & Combinations of keys

    Hi,
    I'm listening to key events and it's fine one one key is pressed;
    if (event.getKeyCode() == KeyEvent.VK_UP)
    }But I need to know when a combination of keys is pressed (like ctrl-a). How can I know if two specifics keys are pressed together?
    Thank you...

    Read JavaDoc. java.awt.event.InputEvent class.
    if (event.getKeyCode() == KeyEvent.VK_UP && event.isControlDown())
    }

  • Key evntent combination?

    Hi, all and excuse my English.
    So, I'm try to write game applet.
    I have object, who is moving to left when left arrow button is pressed,
    to top with up arrow... No problem!
    Now I want to move this object diagonally
    for example to top-left corner, but with combination
    from Left arrow+Up arrow buttons.
    The problem is, that I have event for left arrow button /to move left/
    and for up arrow button /moving object to top/
    It's easy to add new button for moving to top-left, but
    I wish to keep control simple with four buttons.

    Hi, since 85 -
    Startup Manager (holding down Option at startup) is not available on B&W G3 machines, so that choice can not be used.
    Holding down the C key from the beginning of startup should force the machine to boot from an available CD which is bootable for that machine.
    Holding down the X key from the beginning of startup should force the machine to boot from the first available OSX it finds.
    Holding down Command-Option-Shift-Delete from the beginning of startup should force the machine to skip the OS preset in PRAM and boot to the next available OS it finds.
    Otherwise, selecting the OS and volume you want the machine to boot to in Startup Disk (control panel in OS 9, control pane in System Preferences in OSX) and then restarting would be the thing to do.

  • G4 likes to ignore key/mouse input after waking from sleep sometimes

    It doesn't receive any input from a perfectly working logitech USB mouse or the modern Apple Keyboard about every 10th time I wake it from sleep mode, and I have to reboot it. When it's in that ignoring mood, I can unplug and reconnect the mouse, watch the red LED on the bottom light as it's recognized by the machine, but still get no use from it until rebooting.
    What gives? What's the fix?

    hi there--
    you will want to trash the following files to see if it makes any difference--
    /library/preferences/systemconfiguration/com.apple.powermanagement.plist
    /library/preferences/systemconfiguration/com.apple.autowake.plist
    ~/library/preferences/com.apple.systemuiserver.plist (~ means home library)
    if there is no autowake plist you should generate one by setting a schedule in system preferences > energy saver, and then cancelling the schedule. if you do this don't delete the file afterwards, just let it regenerate itself in the systemconfiguration folder.

  • How can I find out what symbols are connected to any key+option combination?

    More speciffcaly, is there a way to get the greek letter alpha? I do a lot of work in higher education and this symbol keeps eluding me.

    In many apps, Edit > Special Characters will bring up the Character Viewer.  Click on the gear wheel at the top left and choose Customize to add categories if you do not see what you want at first.  Drag/drop or double-click to input.
    I don't think you can input α from the keyboard unless you activate a Greek keyboard layout, which is probably not worth the trouble.

Maybe you are looking for