Disabling RETURN key in jTable

Hi,
I have a readonly jTable with some buttons underneath it.
If i press the RETURN key it changes the focus to the next row in the table. Instead of this, i want the RETURN key to activate one of the buttons.
I tried to disable the ENTER key action on the jTable by putting :
table.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0),"none");However, this doesn't give the desired result.
Do i need to specify another keycode to disable the RETURN key or do i miss something else ?
Thx for any help on this.
Roger.

Did you specify what action to take with the line of code you posted?
          Action none = new AbstractAction() {     
               public void actionPerformed(ActionEvent e ){
                       //do whatever action you want taken here
                pane.getInputMap().put( KeyStroke.getKeyStroke( KeyEvent.VK_ENTER, 0 ), "none" );

Similar Messages

  • How can I disable "return key moves to next cell" in Numbers 3?

    I want to create a new line inside one cell.  I'm using Number 3.5.2 on Yosemite.
    In Numbers 2 there was an option whether I wanted the "return key [to move] to next cell", which I was able to disable. 
    Does this feature exist in Numbers 3?  I haven't found it.  If not, does anyone know a workaround?  I could not find this question on the forums (for the current version of Numbers).

    Hi Keith,
    That feature has gone in Numbers 3.
    To insert a new line in a cell in Numbers 3, type option enter.
    Regards,
    Ian.

  • How to disable arrow keys in JTable.

    Hi ,
    I'm using Jtable and when pressing shift + arrow keys the rows get selected. I want to avoid this situation.
    Thanks
    Manjula

    This posting shows how to remove a default Action;
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=657819

  • Return key disabled when using safari with Mavericks OS X

    Hi,
    Has anyone got a way to use return key when using safari??

    niall1111 wrote:
    It is,and always was, the return key that did this in snow leopard and other operating systems!
    ??? I have two Macs that can run Snow Leopard & in neither of them does the return key take me back a page. Also, nowhere in the lists of keyboard shortcuts for OS X or any of the browsers I use (Safari, Firefox, & Chrome) is the return key mentioned as providing this shortcut.
    Some web pages may have been programmed to respond to the return key that way, but not many I have ever encountered are. I guess it is possible some extension or other third party add-on might provide that function, but itis definitely not something that has ever been built into OS X or any of the common browsers used with it.
    In Safari (on Snow Leopard, Lion, Mountain Lion, & Mavericks) two keyboard shortcuts are provided by default to go back a page: one is the CMD-[ combination Barney already mentioned. The other is CMD + the left cursor key. Likewise, CMD+] or CMD + the right cursor key will take you forward a page (if you have previously gone back to a previous page).

  • Disable Function Key F3 in Internet Explorer

    I would like to disable function keys F1 and F3 while playing
    my flash movie in internet explorer. I am using these keys within
    Flash to do some actions.
    I got the script working for Function Key F1 using the
    following script
    <script language="javascript">
    document.onhelp = function() {return(false);}
    window.onhelp = function() {return(false);}
    </script>
    But unable to make it to work for function key F3.
    Thanks in advance,
    Desmond

    Hi des_shun, I have workaround for this issue.
    First thing we have to do is disable keyboard event for F3 key on HTML document so that even if focus is on html document, default Search functionality will not popup. Next thing is, flash must contain KeyboardEvent listener for keyboard response. This is where we will keep our custom F3 functionality. This setting works well on Chrome & FireFox.
    Now IE thing.
    The prolem with IE is that if any one of F3, F5, F6,F7 & F11 key is pressed, when the focus is on flash movie it directly executes the default browser functions like searching, refreshing etc never allowing flash to execute its keyeventlistener. But if focus is on document body, then F3 and other keys work fine.
    Here is the catch.
    All we have to do is whenever focus is shifted to flash, we should revert that focus to document body.
    Here is how we can do this.
    Capture the MouseClick event in your flash movie. Then in this mouseclick event handler, call  javascript function to change focus to document again. Below is the sample code.
    //Flash Code
    stage.addEventListener(MouseEvent.CLICK,mClick);
    function mClick(event:MouseEvent)
              ExternalInterface.call("changeFocus");
    // Javascript Code
    <script type="text/javascript"</script>
              function changeFocus()
                             document.body.focus();
        </script>
    Thats it!

  • Escape key in jtable while editing

    I am trying to unregister the escape key from the jtable when it is in an editing mode. The field in an editable mode is a JTextField. I tried:
    this.getInputMap().remove(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0));I also tried removing it from the JTextField in MyCellEditorObject (which extends DefaultCellEditor)
    But the escape key does not seem to be in either of these components when I do:
    KeyStroke[] ks = this.getInputMap().allKeys();
    if(null == ks)
        System.out.println("null ks........................");
    else
        for (int i = 0; i < ks.length; i++)
            System.out.println(ks.toString());
    Once I get this figured out I need to add and remove other keys to whatever object is handling the events.
    Does anyone know what object is handling the escape key in the JTable while it is in an editing state using a JTextField?

    Well, for others who may have the same problem this is what I found so far:
    The jtable.getInputMap() will always return null (hardcoded in BasicTableUI). To get the input map one has to put:
    jtable.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)
    Then
    KeyStroke[] ks = this.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).allKeys();
    returns keys in the input map and the parent input map....(.keys() will exclude the keys in the parent input map).
    For the JTable all the keys are registered in the parent inputMap.
    m_table.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).getParent().remove(KeyStroke.getKeyStroke(KeyEvent.VK_ALPHANUMERIC, 0));
    m_tablegetInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).getParent().remove(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0, false));
    m_table.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).getParent().put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0, true), "quitRelease");
    m_table.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).getParent().put(KeyStroke.getKeyStroke(KeyEvent.VK_F9, 0), "actionMApKeyObject");
    m_table.getActionMap().put("quitRelease", new QuitAction());
    m_table.getActionMap().put("send", new SendAction());
    private class QuitAction  extends AbstractAction
        public void actionPerformed(ActionEvent ae)
           //do quit cellediting stopped? yes then press quit btn no thenstop ...
    private class SendAction  extends AbstractAction
        public void actionPerformed(ActionEvent ae)
           //do send
    }I still would like to know more about the input maps...and the parent input map???
    As well as the ActionMaps all introduced in 1.3.
    Does anyone know of any URLs or books that contain good explanations and samples
    (I have not found any)...
    I am also interested in how this could be applied more globally
    like the enter key pressing all buttons in my application.
    Or having text fields respond to keyReleased rather than pressed.

  • A, delete a d return keys not wirking

    My A, delete and return keys are not working

    Hi s.darge,
    Thanks for visiting Apple Support Communities.
    If some keys are not working on your MacBook, this test can help to isolate the cause:
    Some keys don't work as expected
    From the Apple menu, choose System Preferences.
    From the View menu, choose Speech.
    Click the Text to Speech tab.
    If "Speak selected text when the key is pressed" is enabled, the key or key combination set to speak text cannot be used for other purposes or used to type text--click Set Key and change it to a less-commonly used key combination (try to use modifier keys such as Shift, Command, Option, and Control). Or, disable the "Speak selected text when the key is pressed" option.
    Click the Universal Access pane in System Preferences, click the Keyboard tab.
    Make sure that Slow Keys is turned off. With Slow Keys on, you need to press a key for a longer period of time for it to be recognized.
    In the Universal Access pane, click the Mouse tab, and make sure Mouse Keys is turned off. With Mouse Keys enabled, you cannot use the Numeric Keypad to enter numbers--instead the keypad moves the pointer (cursor). (There is an option to enable Mouse Keys with five presses of the Option key; you may want to turn that option off to avoid accidentally enabling it.) If Mouse Keys is enabled and you are using a keyboard with no numeric keypad or Num Lock function, see Unable to type while Mouse Keys is enabled in Mac OS X.
    If the function keys on the top row of the keyboard are not working as expected, see Mac OS X: How to change the behavior of function keys.
    If the issue persists, use Keyboard Viewer to help isolate the issue:
    Click the Language & Text pane (Mac OS X v10.6) or International pane (Mac OS X v10.5.8 or earlier) in System Preferences.
    Click the Input Sources tab (or Input Menu tab in Mac OS X 10.5.8 or earlier).
    Click the Keyboard & Character Viewer "On" checkbox to select it (click the Keyboard Viewer "On" checkbox in Mac OS X 10.5.8 or earlier).
    From the Input (flag) menu, choose Show Keyboard Viewer.
    If the keyboard is connected and detected by Mac OS X, the keys you type will highlight in the Keyboard Viewer window. Open TextEdit (or any text application), and try to type something using the keys that were previously not responding to see if they highlight in Keyboard Viewer.
    Start from the Mac OS X Install Disc, choose Terminal from the Utilities menu and test the keys which were previously not working.  If the keys work while started from the Install disc, then the keyboard itself is working correctly.  Use Mac OS X: How to troubleshoot a software issue to isolate the software issue that may be causing the keys to not respond.
    You can find the article with these steps here:
    One or more keys on the keyboard do not respond
    http://support.apple.com/kb/ts1381
    Best,
    Jeremy

  • Uix: return key as accelerator?

    Hello!
    Is there any way to use the return key to submit a form in uix? Someone else on this board said there isn't two years ago, but I can't believe this, as this is an important improvement to every UI. Take Google, for example, and imagine how annyoing it would be to use the mouse for every search you start. I know that I can implement accelerators like Alt+S easily, but I want people to see the results when they just hit enter intuitively.
    I've tried to get this working using a client-side event handler:
    if(window.event.keyCode==13)
        SIMULATE_CLICK_ON_BUTTON;I could not figure out how to submit the form correctly, that is, I don't know what to fill in for SIMULATE_CLICK_ON_BUTTON. A simple frmDqu.submit() did something (I could see it in the browsers status bar), but the page was still the same.
    It would be nice if someone could help me here!
    Greetings,
    Michael

    Hi Michael,Hello!
    Thank you for your answers. I'll try to explain it a little bit better.
    What is your exact requirement,I have an application with many use cases. Most of them just manage DB tables, so they consist of one page for search and navigation (and another one for editing existing and creating new entries; there are also three data actions doing create, commit and rollback). I think it would be best to look at the search/nav page first however. I built it by dragging a 'search form' from the DataControls palette to the page. When I start the application, the table is visible, then I click on my 'search' button, the table disappears and the search form shows up. The first messageTextInput gets the focus. What I want the user to do is to just press, for example, |Tab||Tab| to jump to the third input, type text, hit |Enter|. This should invoke the 'execute' button, which is the first button in the search form and has its location left to the 'cancel' button within a page button bar inside the same labeledFieldLayout the messageTextInputs are in. I hope this is clearly enough, i have added the code at the bottom however..
    I should mention that I use the BLAF (Oracle) visual. Using a different style containing buttons instead of images like MINIMAL, there are default buttons.
    My hope was that I could use a small JavaScript in the keyPress event handler of the form to trigger the 'execute' button, as I mentioned in my first post. I know that the handler works, I just do not know how to simulate a click on the button (which is actually an <a>+<img> in the BLAF environment). So i would need a line of code I can put in the client-side event handler that 'clicks on the execute button' for me.
    which version of JDev
    or UIX you are currently using.I am using Oracle JDev 10g. The about box tells me:
    Version 9.0.5.2 build # 1618
    ADF UIX 2.2.8
    Thank you for the sample and the URL. They did not help me much though. This is the code of my page (I left out some of the event handlers):
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
          xmlns:ui="http://xmlns.oracle.com/uix/ui"
          xmlns:data="http://xmlns.oracle.com/uix/ui"
          xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
          xmlns:struts="http://xmlns.oracle.com/uix/struts"
          xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el"
          xmlns:myTemplate="http://www.telekom.de/">
      <templates xmlns="http://xmlns.oracle.com/uix/ui">
        <templateImport source="../mainApp.uit"/>
      </templates>
      <content>
        <struts:dataScope xmlns="http://xmlns.oracle.com/uix/ui"
                xmlns:data="http://xmlns.oracle.com/uix/ui">
          <provider></provider>
            <contents>
            <document>
              <metaContainer>
                <head title="Qualität DUST"/>
              </metaContainer>
              <contents>
                <body initialFocusId="start">
                  <contents>
                    <form name="frmDqu" method="post" onKeyPress="/*if(window.event.keyCode==13){submitForm(frmDqu,1); return false;}*/">
                      <contents>
                        <myTemplate:mainApp fensterTitel="Qualität DUST"
                                                    xmlns:myTemplate="http://www.telekom.de/">
                          <myTemplate:messageArea>
                            <flowLayout>
                              <contents>
                                <messageBox automatic="true" model="${data}"/>
                              </contents>
                            </flowLayout>
                          </myTemplate:messageArea>
                          <myTemplate:contentArea>
                            <flowLayout>
                              <contents>
                                <spacer height="10" width="10"/>
                                <flowLayout>
                                  <contents>
                                    <flowLayout rendered="${bindings.T1DquView1Iterator.findMode}">
                                      <contents>
                                        <header text="Suchkriterien eingeben" id="detail7">
                                          <contents>
                                            <labeledFieldLayout>
                                              <contents>
                                                <messageTextInput model="${bindings.DquQualnr}" columns="10" readOnly="false" required="no" maximumLength="3" id="start" disabled="false"/>
                                                <messageTextInput model="${bindings.DquQualitaet}" columns="10" readOnly="false" required="no" maximumLength="12" id="qualitaet"/>
                                                <spacer width="10" height="35"/>
                                                <pageButtonBar>
                                                  <contents>
                                                    <submitButton text="Suchen" event="action" accessKey="s" model="${bindings.Execute}" id="Execute01"/>
                                                    <submitButton text="Abbrechen" event="goCancel" accessKey="a" onClick="frmDqu.reset();"/>
                                                  </contents>
                                                </pageButtonBar>
                                              </contents>
                                            </labeledFieldLayout>
                                          </contents>
                                        </header>
                                      </contents>
                                    </flowLayout>
                                    <header text="Qualität DUST" rendered="${not bindings.T1DquView1Iterator.findMode}">
                                      <contents>
                                        <table model="${bindings.T1DquView1}" id="T1DquView112" partialRenderMode="multiple" partialTargets="_uixState" alternateText="Keine Datensätze gefunden.">
                                          <contents>
                                            <column>
                                              <columnFormat columnDataFormat="numberFormat"/>
                                              <columnHeader>
                                                <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.T1DquView1,'DquQualnr')}"/>
                                              </columnHeader>
                                              <contents>
                                                <textInput model="${uix.current.DquQualnr}" columns="10" readOnly="true">
                                                  <onSubmitValidater>
                                                    <decimal/>
                                                  </onSubmitValidater>
                                                </textInput>
                                              </contents>
                                            </column>
                                            <column>
                                              <columnHeader>
                                                <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.T1DquView1,'DquQualitaet')}"/>
                                              </columnHeader>
                                              <contents>
                                                <textInput model="${uix.current.DquQualitaet}" columns="10" readOnly="true"/>
                                              </contents>
                                            </column>
                                          </contents>
                                          <tableSelection>
                                            <singleSelection model="${bindings.T1DquView1Iterator}" text="Ausgewählte Reihe">
                                              <primaryClientAction>
                                                <firePartialAction targets="_uixState" source="T1DquView112" event="select"/>
                                              </primaryClientAction>
                                              <contents>
                                                <submitButton text="Korrigieren" event="goDetail" accessKey="k"/>
                                                <spacer width="5" height="10"/>
                                                <submitButton text="Löschen" event="goDelete" accessKey="l" onClick="return confirm('Soll der Datensatz gelöscht werden?')"/>
                                              </contents>
                                            </singleSelection>
                                          </tableSelection>
                                          <tableActions>
                                            <flowLayout>
                                              <contents>
                                                <submitButton text="|<" model="${bindings.First}" id="First14" event="action"/>
                                                <submitButton text="<" model="${bindings.PreviousSet}" id="PreviousSet15" event="action"/>
                                                <submitButton text=">" model="${bindings.NextSet}" id="NextSet16" event="action"/>
                                                <submitButton text=">|" model="${bindings.Last}" id="Last17" event="action"/>
                                              </contents>
                                            </flowLayout>
                                          </tableActions>
                                        </table>
                                        <spacer width="10" height="10"/>
                                        <separator/>
                                        <spacer width="10" height="10"/>
                                        <pageButtonBar>
                                          <contents>
                                            <submitButton text="Suchen" model="${bindings.Find}" id="Find13" event="action" accessKey="s"/>
                                            <submitButton text="Alle anzeigen" event="showAll" accessKey="a"/>
                                            <spacer width="50" height="10"/>
                                            <submitButton text="Neu anlegen" event="goNew" accessKey="n"/>
                                          </contents>
                                        </pageButtonBar>
                                      </contents>
                                    </header>
                                  </contents>
                                </flowLayout>
                              </contents>
                            </flowLayout>
                          </myTemplate:contentArea>
                        </myTemplate:mainApp>
                        <formValue name="${bindings.statetokenid}" value="${bindings.statetoken}" id="_uixState"/>
                      </contents>
                    </form>
                  </contents>
                </body>
              </contents>
            </document>
          </contents>
        <!--/dataScope-->
        </struts:dataScope>
      </content>
      <handlers>
        <event name="action" source="Execute11">
          <invoke method="doIt" javaType="oracle.jbo.uicli.binding.JUCtrlActionBinding" instance="${bindings.Execute}"/>
        </event>
        <event name="action" source="Find13">
          <invoke method="doIt" javaType="oracle.jbo.uicli.binding.JUCtrlActionBinding" instance="${bindings.Find}"/>
        </event>
        <event name="action" source="Execute01">
          <invoke method="doIt" instance="${bindings.Execute}" javaType="oracle.jbo.uicli.binding.JUCtrlActionBinding"/>
        </event>
        <event name="goCancel">
          <compound>
            <invoke method="doIt" instance="${bindings.Execute}" javaType="oracle.jbo.uicli.binding.JUCtrlActionBinding"/>
          </compound>
        </event>
      </handlers>
    </page>Bye,
    Michael

  • In the previous version, the menu table in table options, there is an option that gives me the option: the Return key moves to next cell. I do not see this option in the new number. can you help me please?

    in the previous version  of Number, the menu table in table options, there is an option that gives me the option: the Return key moves to next cell. I do not see this option in the new number. can you help me please?

    Hi silvano,
    If you use a regular pattern when entering values, press enter (return) after entering the last value in a row. That will take you to the first Body Cell of the next row.
    Start in Cell B2
    1 Tab 2 Tab 3 Enter
    4 Tab 5 Tab 6 Enter
    7 Tab 8 Tab 9 Enter
    Now you are ready to type into B5 .
    Another way that some people find easier is to enter one column at a time
    Start at B2
    1 enter
    4 enter
    7 enter
    etc.
    Now start with C2.
    Use whatever suits your work flow.
    Regards,
    Ian.

  • How do I perform an action on return key press in an inputListOfValues?

    I know about the autoSubmit attribute, but I do not want to perform an action on a tab character or when exiting focus. Instead, I want to perform the same action as pressing a button when the user presses the return key in the input field. For example, an inputListOfValues for a search input, and a search button. When the user presses the return key, I would like the search to be performed. I'm sure that this can be done, I'm just not sure how. Thanks for any info.

    I did something similar, on an input box, not on an inputListOfValues, but I assume it should work the same way more or less. I got it from
    http://download.oracle.com/docs/cd/E15523_01/web.1111/b31973/af_event.htm#DAFBJGAH
    I used it for my login page so the user doesn't have to click on Login, just press enter after entering the password. I just had to map the corresponding method binding.
    BTW, the link above doesn't tell you have to add the javascript to the page. What I did was add an af:resource element inside of af:document.
    Hope this helps.

  • Disable return button

    I have created an action link on main report that opens second report in a new window and second report has a return button on it by default and when i click on it its is taking me to main report in new tab, Is there any way we can disable return button on second report ?
    thanks

    Check this Re: Unable to hide Refresh link in "No Result" view in BISE1 10.1.3.2.1 version

  • Return Key no longer works in sql windows or procedure editors.

    The <return> key no longer works in my SqlDeveloper editors. Is there an easy fix? I tried resetting the Option for the carriage return but it did not change anything.

    So if you go to your shortcut keys (Tools > Preferences > Shortcut Keys) and search for "Enter", what commands are associated with the Enter shortcut? If you have tried remapping the Enter key to something else, it may have removed the standard association with the "Insert New Line" command.
    You can reset to the default (which should fix the problem, but lose any custom shortcuts) with More Actions (top right) > Load Keyboard Scheme > Default.
    theFurryOne

  • How can I disable a key through software?

    A friend of mine spilt water on her keyboard. As a result, her forward slash key frequently spams and makes typing difficult. I used a program to remap the forward slash key to a forward delete key, but that has also caused problems. What I'm looking for is a program that will allow me to completely disable a key.
    I should note, I've used KeyRemap4Macbook and I've also developed my own code, which disables the key on Cocoa applications. However, the key still spams on applications like Microsoft Word.
    Her Macbook is more than a year old, and she can't afford to buy a new one.
    Any suggestions?

    Liquid in a physical keyboard is great trouble. You may worsen state if you continue to use it like this, make the effort to change it. It is not cheap, but may prove cheaper than damage the whole computer.

  • Is there a way to get a soft keyboard on iOS to show ´join´ or ´send´ in the return key of a keyboard?

    I saw that the ReturnKeyType [1] only supports a subset of value possible on iOS [2].
    Basically the supported return key types are "done", "go", "next", "search" and "default" which corresponds to "enter" on iOS
    while iOS also supports "Google", "Join", "Route", "Send", "Yahoo" and "Emergency Call".
    Two of the iOS types "Join" and "Send" I would find quite useful in places I'm currenlty using the "go" return key type
    Is there anyway to get the soft keyboard to show this labels on iOS?
    Alternatively it would be great if "join" and "send" are added as Air ReturnKeyType's (e.g. they could default to "go" on other devices)
    Thanks
    [1] ReturnKeyLabel - Adobe ActionScript® 3 (AS3 ) API Reference
    [2] UITextInputTraits Protocol Reference

    I saw that the ReturnKeyType [1] only supports a subset of value possible on iOS [2].
    Basically the supported return key types are "done", "go", "next", "search" and "default" which corresponds to "enter" on iOS
    while iOS also supports "Google", "Join", "Route", "Send", "Yahoo" and "Emergency Call".
    Two of the iOS types "Join" and "Send" I would find quite useful in places I'm currenlty using the "go" return key type
    Is there anyway to get the soft keyboard to show this labels on iOS?
    Alternatively it would be great if "join" and "send" are added as Air ReturnKeyType's (e.g. they could default to "go" on other devices)
    Thanks
    [1] ReturnKeyLabel - Adobe ActionScript® 3 (AS3 ) API Reference
    [2] UITextInputTraits Protocol Reference

  • In Lion return key no longer opens a file! Is there a work around?

    In Lion return key no longer opens a file! Is there a work around?
    In Snow Leoppard I used the return key all the time in finder and Path finder when quickly navigating files. There was the choice of the 2 return keys, one opens the file and the other goes into edit the filename. Now in Lion both keys do the same thing and I miss it badly. It means you have to go to the mouse which (reletively speaking) takes ages.
    Is there a work arround or fix?

    This is a standard setting to change to this to allow users to access the emotions option, this has been like this for some while because the text messages app only allows a number of letters and to add a line break will cause issue with the letter count...  At this time there isnt any way to modify it other than use a 3rd party keyboard but a number of them does this as well.
    Another option that may work is open a email and type the message the way you want it to layout and then copy all text and paste in the text message window, it may keep the original format of the text but I havent tried it myself.
    UPDATE:  Just tried it and you can copy and paste from email and text will keep format...

Maybe you are looking for