Cut/Copy/Paste - How to set the key bindings ?

Hi,
I'm currently using the motif LnF in Windows. It matches the colors and style I want.
The problem is: people using Windows want to use the standard windows key bindings (that is: CTRL+V, CTRL+C, CTRL+X) instead of the Motif ones.
Does anyone how to set the old Windows key bindings into the Motif LnF ?
If anyone can provide some light, it'd be great !
Regards,
- Juancho

The Swing tutorial on "General Rules for Using Text Components" has a demo program that shows you how to assign KeyStrokes to Actions.
Unfortunately the demo has not been updated in a while and still uses a keymap. The new approach would be to use an 'inputMap' and an 'actionMap'. The code for the copy action would be something like this:
textComponent.getInputMap().put(keyStroke, "copy");
textComponent.getActionMap().put("copy", action);
Again, the demo program 'TextComponentDemo' from the above tutorial will show you how to:
1) create the keyStroke for Ctrl+C
2) retrieve the default copy action from the editor kit

Similar Messages

  • 0 down vote favorite share [fb] share [tw]        How to hide cut/copy/paste/Replace- menu on the UIWebView when it is being displayed over the keyboard.  Detail: I am having a HTML from, having text box, displayed using UIWebView. If user types in text b

    How to hide cut/copy/paste/Replace… menu on the UIWebView when it is being displayed over the keyboard.
    Detail: I am having a HTML from, having text box, displayed using UIWebView. If user types in text box it shows the keyboard. Now If user tap and hold on text box it shows a popup menu. Now while keyboard and pop up are being displayed user scrolls the view. At this time it shows pop up over the keyboard which I need to hide.
    I tried setMenuVisible of UIMenuController when popup rect and keyboard rect intersects each other on viewDidScroll but it didn't help me.
    Any clues will help a lot.
    Thanks.

    You are more likely to get an answer if you post programming problems to the Developer forum. This forum is intended for normal user level problems.

  • How to set the Key Photo in .Mac Web Gallery ?

    Has anyone managed to set the key photo in a .Mac Web Gallery album ? The key photo is the photo used on the main page of the Web Gallery to illustrate the event.
    In iPhoto, all you do is select in the left column a published .Mac Web Gallery, right-click on the photo you want to set as the key photo, and select "set as key photo".
    In aperture, you can do the same in a project, but this will only set the key photo for your "all projects" view. This key photo is not used when exporting the project to .mac web gallery.
    In all the web galleries I export from Aperture, the first picture is used as the key photo, it's really a problem. Any solution ?
    Message was edited by: skiss

    There is a small "Header Bar" if you will in iPhoto, you can drag the photo you want to that header bar and I think that accomplishes what you want if I understand what you mean by Key Photo (the photo that shows up in e-mail if you forward the gallery to others). My wife and I stumbled on that solution as we were trying to figure it out. Actually I think wife gets the credit, she had the mouse in her hand when it happened .

  • MCB_ is not working correctly to set the keys

    Hi,
    I am using transaction MCB_ to set the transaction keys but the screen comes up with blank blue screen and an error:
    <b>View/table V_TMCLBW can only be displayed and maintained with restrictions</b>
    I then went to SM30 to maintain table V_TMCLBW, bubt it saids the same error with suggestion to do the following:
    •     <b>find the customizing objects for maintenance of the table/view V_TMCLBW with the 'Display Existing Maintenance Objects' button in the maintenance transction SM30, or
    •     go to the IMG via the 'Customizing' button (also in transaction SM30) and make the settings there.</b>
    Has anyone come across this and can help on how to set the keys?
    Thanks
    WF

    Where do you set this? In develop system?
    Try this transaction:
    Use the following menu path: Transaction SBIW -> Settings for Application-Specific DataSources (PI) -> Logistics -> Settings for IBU Retail/CP
    If not and you are in Test or prod system you have to transport this setting (is not automatically).
    Regards,
    Sergio

  • How do I reinstall the edit button on my Firefox 4 toolbar; cut, copy, paste, and print?

    I recently have been having problems with my Firefox 4 tool bars. Right now, the Edit icons are no longer on the tool bar, specifically Cut, Copy, Paste, and Print. If there were other Edit icons, they too are gone. All the other icons have remained.
    I would appreciate it if you could advise me how to reinstall those specific icons.
    Also recently, ALL my tool bars, and task and status bar disappeared. This was only in Firefox 4.0; IE 8 was not affected. Clicking F11 did not work. I could not function without them. Then, a short time later, they "automatically" reappeared. I have not idea of why the disappeared or reappeared.
    Thank you for any help you can provide.
    Sanford A. Berman

    You can find the Copy, Paste, and Cut buttons next to Firefox > Edit (and in its sub menu) and in the regular Edit menu on the menu bar (press F10 if the menu bar is hidden).
    The buttons next to Firefox > Edit are enabled if there is something to do with them, just like with the toolbar buttons.
    You can find the Copy, Paste, and Cut toolbar buttons in the toolbar palette in the Customize window and drag them on a toolbar.
    Open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout"
    *http://kb.mozillazine.org/Toolbar_customization
    *https://support.mozilla.com/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • How to set the short cut key for buttons

    Hi
    I dont know how to set the short cut keys for the button...can u pls help me out

    Do you mean a short cut key for buttons at client side (web browser)? If yes, you could do it with JavaScript~~~ ^o^

  • How To set cut/copy/paste for JtextArea

    Hai
    i could not able to set cut copy paste in JTextArea
    pls help me in this filed..
    thanx.

    This will do...... :)
    private Hashtable actionHash = new Hashtable();
    Action ac[]=new Action[3];
    JButton butt[]=new JButton[3];
    int count=0;
    String ac_names[]={DefaultEditorKit.cutAction,DefaultEditorKit.copyAction,DefaultEditorKit.pasteAction};
    Action[] actions = YourTextPane.getActions();
            for (int i=0; i<actions.length; i++)
                String name = (String)actions.getValue (Action.NAME);
    actionHash.put(name, actions[i]);
    for (int i=0; i<actions.length; i++)
    ac[i] = getHashedAction(ac_names[i]);
    butt[i]=new JButton(ac[i]);
    protected Action getHashedAction(String name) {
    return (Action)actionHash.get(name);

  • How to add cut,copy,paste functionality ?

    Hello everybody,
    I have to add cut,copy,paste functionality to my RichTextEditor for which I have already added
    buttons to editors toolbar,Now I want to add these three functionalities to my editor.
    Can anyone tell me or provide me some code sample for it ?
    Thanks

    Well Thank you for your response,What I am looking for is ,the user should be able to copy,cut and paste the selected text anywhere,
    (e.g.If user selects the text and clicks the COPY button on the RichTextEditor , he can copy that selected text into notepad or any other editor or any other place in the system)
    I have written the code for copy and its working properly
    System.setClipboard(richTextEditor.selection.text);
    I was wondering how to write the code for cut and paste.
    many thanks again

  • How to set the item property to restrict the user to not to copy from above

    Hi Guru's,
    I have a requirement like, There were two items on the form name email Id, Confirm email Id.
    I have to ristrict the user to not to copy from email Id item.. make him/her to enter the value into confirm email id item field manually.
    How to set the item property to restrict the user to not to copy from above item and paste it in this item.
    Please help.
    Thanks!!

    Just an opinion here, but that is about the dumbest requirement I have ever seen.
    I am always annoyed by web sites that ask me to enter my email twice. I ALWAYS copy the email address from the original entry and paste it into the second one.
    People enter their email addresses so often, it takes a real klutz to not get it right. And what makes you think that if they enter it twice, that they won't enter it wrong both times anyway???

  • I have a macbook air and I can't cut and paste in itunes.  The right clic does not work. How can I work this out?

    I have a macbook air and I can't cut and paste in itunes.  The right clic does not work. How can I work this out?

    Great tip Stephen!!
    I was so frustated from this issue that I used to use Windows iTunes for mass editing info, adding Lyrics etc and then transfering songs to Mac. This tip has alleviated my pain!!
    Thanks for the tip. This question should be tagged as answered.

  • How can I move columns in Numbers without distorting the formula in other cells?  In Excel I can cut and paste entire columns and the formula in other cells adjusts accordingly.  When I do it in Numbers, the formula messes up.  How can I do this?

    How can I move columns in Numbers without distorting the formula in other cells?  In Excel I can cut and paste entire columns and the formula in other cells adjusts accordingly.  When I do it in Numbers, the formula messes up.  How can I do this?
    For example: I have formulas in columns D and F that relate to columns C to CU
    If I want to move one column from one position to another (say S to T), the formula loses the colums that was moved, i.e. it doesn't recognize it has moved, rather sees it as deleted...  How can I do this without distorting the formula?

    Thanks for the feedback.
    If I often urge askers to look at the available resources, it's because  a large range of questions asked in the forums are already answered in these documents.
    As they are PDFs, they are easy to search in.
    CAUTION
    Download them while they are available.
    Given what is delivered with iBooks Author, I'm afraid that we will not get such easy to use documents.
    Searching infos in the  iBooks Author documentation available on line is awfully cumbersome and a lot of embedded links are wrongly flagged this way. In the Help files they aren't links but underlined strings.
    It seems that the tool used to generate the web pages was wrongly configured.
    Yvan KOENIG (VALLAURIS, France) dimanche 22 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
    My iDisk is : http://public.me.com/koenigyvan

  • I cut and pasted a description from the Internet. It posted as a link in iPhoto. It seems to have made a global change--all my descriptions are now blue, underlined, and Times Roman 12 rather than Arial white. How can I get this back to the default?

    I cut and pasted a description from the Internet. It posted as a link in iPhoto. It seems to have made a global change--all my descriptions are now blue, underlined, and Times Roman 12 rather than Arial white. How can I get this back to the default?

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • How to set primary key of the VO.

    I have a problem with the master detail search. The search works fine on the first search, all details can be seen fine, but in the second search I get this error.
    The number of displayed records, 1, exceeds the actual number of records, 0, in view object EgoItemAdvancedSearchAM.MYACCESSOR001_MYLINK001_DetailsOrderLinesVO. Some of the displayed records may have been deleted.
    Somwhere in another thread, someone had the same problem and the soultion was to set primary key of the master VO. I am not sure how to set primary key of a VO. In my case the master VO is dynamic. Is there a way I can set PK of a dynamic VO.
    Any help greatly appreciated.

    Hi
    Thanks for your reply...
    am seting the primary key to VO attribute in my controller(PR)...but its not mapping to the VO attribute..
    OAAttachmentImageBean Ibean = (OAAttachmentImageBean)webBean.findChildRecursive("OpAttachments");
    String[] pkvaule = {"ResAttribute15"};
    Ibean.setPkColumns(pkvaule);
    Regards
    Harrrry

  • The right mouse button on my 8740w has failed (clicks but no result, i.e Cut/Copy/Paste/Delete menu

    My right mouse button clicks but no result, i.e Cut/Copy/Paste/Delete menu does not appear.
    I think the hardware has failed.
    Note the mousepd is not the issue.  The right button is the problem
    Left button works fine

    Same deal with me except the right button has failed twice. You may find that if you push on it past the click with a bit more force it will respond. They swapped the hardware and same thing occurred.
    HP should be ashamed that they would put such awful mouse hardware on its flagship product. Whoever designed it should be fired.
    If HP had any customer loyalty they would offer a hardware update and offer it to those who are still under warranty.
    Suffice to say I will never, ever purchase an HP workstation again.
    Good luck.

  • Can anyone told me :how to setting the shortcut key to show destop ?

    can anyone told me :how to setting the shortcut key to show destop ?

    Raynman was asking about what desktop environment you use in archlinux.  It is clear what you want to do, but the answer to your question depends on which Desktop Environment (like Gnome, KDE, XFCE, etc) or Window Manager you are using.

Maybe you are looking for

  • WiFi issue: Is it possible to change WiFi settings in a way that it does not switch off in the screen-lock mode?

    I have iPhone 4 and 4s. WiFi is automatically switching off on both phones when they are inactive (screens are locked). It is connecting back after some seconds I unlocke the phone. But because I have no subscribtion for the Cellular data usage, I am

  • How to create search function in  our OAS-site

    Hi We have built a web based system that is deployed in OAS 10g and the data is stored in multiple Oracle tables, version 9.2.0.1. Now the user wants the ability to search through all the tables and even in the attached documents (Word, Excel and pdf

  • Order number in VA03 is not filled

    Hello!!! I would like to show you a weird case. This is my problem: 1. I execute the  Order Number matchcode,  in VA03 transaction. 2. I select the tab "Sales document accodrding to customer PO number". 3. THe search help returns  X number of records

  • Getting a substring using JSTL

    Have string as below. <UL><LI>Required</LI></UL> Would like to get only the string "Required" with out any UL stuff. is it possible to get this using JSTL? if not how to get the substring "Required". Thanks.

  • GPU panic error - Computer frequently shuts down

    After some research i couldn't really find the solution to my problem, so i decided to seek help on the forum. Recently my MBP retina late 2012 started crashing with the screen going all black leaving the keyboard lights on. I had to force it to rest