Restrict "Enter, delete and backspace" in TextArea

Hi,
     I want to restrict Delete key, Backspace key,  and Enter Key in TextArea. Please tell me how to restrict these 3 keys. Thanks in advance.
Regards,
Kameshwaran A

var origS:String = "Cuveiro: resteba o restreba 'la segunda cosecha que se coge en un mismo terreno'."
my_txt.text = origS;
listenerObject = new Object();
// If i press delete key, first  this listener is invoking
listenerObject.keyDown = function(eventObject) { 
    ci = Selection.getCaretIndex(); 
listenerObject.keyUp = function(eventObject) { 
    if(Key.getAscii()==13){
        my_txt.text=my_txt.text.split("\r").join("");
    } else if(Key.getAscii()==8 || Key.getAscii()==127){
        if(prevS){
            my_txt.text=prevS;
        } else {
            my_txt.text=origS
    prevS = my_txt.text;
    Selection.setFocus(my_txt);
    Selection.setSelection(ci,ci)
my_txt.addEventListener("keyDown",listenerObject);
my_txt.addEventListener("keyUp",listenerObject);

Similar Messages

  • JmaskField and delete and backspace

    I am using this package for formatted input.
    Delete and backspace do not work if the field is created with a default text as in the code snippet I attach. Did somebody managed this to work? How? delete and backspace work badly in everycase anyway.
    best regards
    -Mangi
    MaskMacros macros = new MaskMacros();
    macros.addMacro('*',"[a-zA-Z0-9]");
    macros.addMacro('#', "[0-9]");
    macros.addMacro('@', "[a-zA-Z]");
    macros.addMacro('%',"[A-Z]");
    macros.addMacro('*',"[a-zA-Z0-9]");
    MaskField2 k = new MaskField2("CODE******",macros);

    It's quite possible.  Closing the document and then re-opening it somehow magically reset the keys so that they work now.  Thanks for the response, though!

  • JMaskField mask input : delete and backspace do not work

    I am using this package for formatted input.
    Delete and backspace do not work if the field is created with a default text as in the code snippet I attach. Did somebody managed this to work? How? delete and backspace work badly in everycase anyway.
    best regards
    -Mangi
    MaskMacros macros = new MaskMacros();
    macros.addMacro('*',"[a-zA-Z0-9]");
    macros.addMacro('#', "[0-9]");
    macros.addMacro('@', "[a-zA-Z]");
    macros.addMacro('%',"[A-Z]");
    macros.addMacro('*',"[a-zA-Z0-9]");
    MaskField2 k = new MaskField2("CODE******",macros);

    Nope, I don't think those keys are even "firing" as another person worded it. I can push the buttons down, so they aren't stuck but it doesn't seem to be sending any signal.

  • Some keys as ENTER, SPACE and BACKSPACE type characters

    Some keys as ENTER, SPACE and BACKSPACE are not working properly in my HP Pavilion dm4 1055br. When pressing one of these keys type two or three characters ( ): ENTER (lçj), SPACE (.;M), BACKSPACE (~h). This latter at the same time turn off the F11 key (sound). The light of wireless key (F12) does not turn on. When turn off the F12 key, all the keys mentioned work well.

    Dear Customer, Welcome and Thank you for posting your query on HP Support Forum It looks like you are having issues with the Keyboard on your Notebook.We will surely assist you with this. Troubleshooting: Step 01. Click on the Start Button and go to Control PanelStep 02. Open the Device Manager and expand the Keyboard from the listStep 03. Right click on Standard PS/2 Keyboard and click on UninstallNote: This driver will get installed again automatically on your NotebookStep 04. Please turn OFF the NotebookStep 05. Un-plug the Power/AC Adapter and also remove the Battery tooStep 06. Press and Hold the Power Button of the Notebook for a full minuteStep 07. Now let's re-insert the battery back in and plug back the Power/AC AdapterStep 08. Start the Notebook and keep tapping F10 Key during the startup to access the BIOSStep 09. Once you get to the BIOS, Please press F9 or F5 Key[Model specific] to load setup defaults for the BIOSStep 10. Use the arrow keys to say "YES" and hit enterStep 11. Now let's press Esc/Escape Key. Save Changes and Exit - YesStep 11. Now please wait till the Unit loads the Windows Operating system If the issue still persists please check and verify if an External Keyboard works fine with your Notebook Note: Please click on the below shown link to find more troubleshooting stepshttp://h10025.www1.hp.com/ewfrf/wc/document?docname=c03738933&tmp_task=solveCategory&cc=us&dlc=en&lc=en&product=5442782 You also need to download and install the BIOS driver first and then Chipset driver followed by Graphics driver from the HP Website
    Note: Please follow this order only while installing the driver - BIOS, Chipset and then Graphics Hope this helps, for any further queries reply to the post and feel free to join us again   **Click the White Thumbs Up Button on the right to say Thanks**Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem. Thank You,K N R KAlthough I am an HP employee, I am speaking for myself and not for HP

  • HT5449 How do I find edit functions such as delete and backspace in mac OX dictation

    I can not find delete, backspace or other edits functions. Is there a hands-free alternative to press function key.

    This code will remove everything that is possible from the Bookmarks menu , Bookmarks Menu button, and App menu so leave out what you want to keep.
    <pre><nowiki>#menu_bookmarkThisPage,
    #subscribeToPageMenuitem,
    #subscribeToPageMenupopup,
    #menu_bookmarkAllTabs,
    #bookmarksShowAll, #organizeBookmarksSeparator,
    #bookmarksToolbarFolderMenu,
    #bookmarksToolbarFolderMenu+menuseparator,
    #bookmarksMenuPopup menuseparator[builder="end"],
    #menu_unsortedBookmarks { display:none!important; }
    </nowiki></pre>
    <pre><nowiki>#BMB_viewBookmarksToolbar, #BMB_viewBookmarksToolbar+menuseparator,
    #BMB_bookmarksShowAll, #BMB_bookmarksShowAll+menuseparator,
    #BMB_bookmarkThisPage,
    #BMB_subscribeToPageMenuitem,
    #BMB_subscribeToPageMenupopup, #BMB_subscribeToPageMenupopup+menuseparator,
    #BMB_bookmarksToolbar, #BMB_bookmarksToolbar+menuseparator,
    #BMB_bookmarksPopup menuseparator[builder="end"],
    #BMB_unsortedBookmarks { display:none!important; }
    </nowiki></pre>
    <pre><nowiki>#appmenu_showAllBookmarks, #appmenu_showAllBookmarks+menuseparator,
    #appmenu_bookmarkThisPage,
    #appmenu_subscribeToPage,
    #appmenu_subscribeToPageMenu,
    #appmenu_subscribeToPageMenupopup, #appmenu_subscribeToPageMenupopup+menuseparator,
    #appmenu_bookmarksPopup menuseparator[builder="end"],
    #appmenu_unsortedBookmarks { display:none!important; }
    </nowiki></pre>

  • Keyboard problems with Enter, delete, backspace, and right/left arrows

    In some applications, such as Yahoo and this message block right now !!, when composing a message, the arrow keys and delete, backspace keys become non responsive. Various ones will work on a random basis.
    I am getting double "carriage returns" also. Maybe this is why in Omegle when I press ENTER, it will not post a chat message; it will bring up a scroll box and for me to post the comment, I have to use the mouse to click ENTER.
    I have changed batteries in my keyboard, uninstalled /reinstalled Firefox. I have checked the above websites in Chrome and other browsers, and there are no problems.
    This has happened before, I don't recall what the solution was or if it just went away.'''
    Affected sites -- at least these
    http://us.mg6.mail.yahoo.com/neo/launch?ncrumb=Fx5R4O7ccqb&.rand=1041364415&nmig=yes#
    http://omegle.com/
    https://support.mozilla.com/en-US/questions/new?product=beta&category=b2&search=Keyboard+problems+with+Enter%2C+delete%2C+backspace%2C+and+right%2Fleft+arrows&showform=1

    PROBLEM SOLVED: http://forum.archlinux-br.org/viewtopic.php?id=1257
    Solution posted on Brazilian Archlinux forum. Credits to user "920608".
    [cache]
    /etc/xorg.conf
    Section "Files"
             #RgbPath "/usr/X11R6/lib/X11/rgb"
    EndSection
    Section "ServerFlags"
               Option "AutoAddDevices" "False"
    EndSection
    C'ya

  • I need to reprogram the delete and enter key to the left side of a external keyboard for the ipad mini. don't need the caps/lock or ctrl key and due to an injury my daughter can only use her left hand to type. She is using a text to speech app to verbaliz

    I need to reprogram the delete and enter key to the left side of a external keyboard for the ipad mini. I don't need the caps/lock or ctrl key. Due to a brain injury my daughter can only use her left hand to type. She also uses a text to speech app to verbalize all of her needs since her speech isn't intelligible any longer either. And her vision was significantly affected also, so the keyboard has to be mounted about 6 inches from her face. So to reach across the keyboard with her left hand to the right side delete and enter button is physically difficult and causes typing errors, which cause people to not understand what shes trying to say.
    The best keyboard so far is the Zagg folio mini. I just had to make stickers to enlarge the letters on the key buttons.
    Does anyone know how I can reprogram these two keys? Or where I can buy a wireless mini keyboard for Ipad made for lefthanders with these two functions on the left side. I have searched for days and days. It's sooooo important to me that she be able to contribute her voice again. Imagine if you got in a car accident and couldn't speak clearly any longer, but understood everything still. Thanks for any help and suggestions you all take the time to share with me. I really appreciate the kindness of strangers to help me help my daughter.
    Sami's mom

    Sami\'s mom wrote:
    I need to reprogram the delete and enter key to the left side of a external keyboard for the ipad mini.
    You cannot.

  • Screen backspace broken, delete ok, backspace and del ok in plain bash

    Hi, all, im having a little trouble getting backspace to work in screen session, i have looked up previous messages and everything works fine in normal bash session to server (debian), utf-8 ok, delete ok, backspace ok, but when i launch screen on server side, the backspace is not working, i get visual bell.
    On screen session at mac server this is working properly, and on local machine everything is ok.
    I tried to set .screenrc file on server containing:
    bindkey -d kb stuff \177
    bindkey -d kb stuff "\177"
    bindkey -d kb stuff ^?
    bindkey -d kb stuff `H
    (single line every try offcourse), but no solution so far.
    I do realise most likely its not os x issue but im have not found working fix on linux sites either, and asking & telling im a mac user closes some doors.
    Oh and i should point out, im using mbp and delete combo is fn-backspace, wich is working ok in screen, but plain backspace is the problem.
    Any idea's or directions other than google appreciated. Thanks.
    .:: Macbook Pro c2d & Maxtor 160Gb fw ::.   Mac OS X (10.4.8)  

    Hi Freemem,
       What you didn't say is how you got backspace to work in the Debian shell. I don't know anything about screen but most command line utilities work correctly if you fix the problem at the terminal level rather than the shell level. You can use bindkey in the shell but that isn't always communicated to utilities launched from that shell. (like screen) I don't know if screen will benefit from the following but the preferred way to get the terminal to grok the '^?' control character being sent by the backspace or delete key is to use stty. (this issue is hardly limited to Macs; every machine I use, including RedHat, sends the '^?' control character when the backspace key is pressed) I use the following in my remote shells.
    if [ "$-" = "himBH" ]; then
       stty erase ^?
    fi
    Note that the "^?" should actually be the control character produced by the key sequence, <Control>-v, <Delete>. Also, I've included the test for shell interactivity that I use; you may have to adjust that for Debian. If you copy-and-paste the above, make sure you replace the non-breaking spaces I used for indention at the beginning of the second line with real spaces. Note that I don't use screen so I don't know whether this will help in a screen session but I think it has a good chance; it helps with every app I use.
    Gary
    ~~~~
       Just remember: when you go to court, you are trusting
       your fate to twelve people that weren't smart enough
       to get out of jury duty!

  • My App Store is deleted and the option to turn it back on in restrictions is grayed out. How do I get the App Store back?

    My App Store is deleted and the option to turn it back on in restrictions is grayed out. How do I get the App Store back?

    If a reset didn;t work, then you can try restoring your iPad. Don't restore from a back up because if there is a glitch with restrictions, it will just set that option up again. Of if you are sure you have a backup created before you changed restrictions settings, then you can back up from that.
    Backup & Restore
    Restore iOS
    Recovery Mode Restore

  • IPhone 4S, the last two versions of IOS: I receive an text, reply, get error message instructing me to use valid 10 digit number. Only this person. I've deleted and re-entered her contact info - still cant send txt. What's up?

    Seems I entered question in subject field? Here's the question:
    iPhone 4S, the last two versions of IOS: I receive a text, in iMessage, reply, get error message instructing me to use valid 10 digit number. Only this person. I've deleted and re-entered her contact info - still cant send txt. What's up? ATT says they've never seen this. I have previously texted successfully with this person and she's changed nothing on her end.

    The fix for this problem is easy and is set out here: http://edctips.blogspot.com/2014/09/fixing-iphone-texting-problem.html

  • The verification lists my card data and address etc. correctly but I need to keep entering the card security number.  Support keep telling me to delete and re-enter my car info which does not help. Anyone else seen this issue?  Seems to be something to do

    The verification lists my card data and address etc. correctly but I need to keep entering the card security number.
    Support keep telling me to delete and re-enter my car info which does not help. Anyone else seen this issue?
    Seems to be something to do with a new security check they have put in the system that does not work correctly and support is totally incapable of helping me out.
    wth am i gonna do im feed up and on top i have no one to help me been calling itunes for days now im ****** off to the maxxx

    I've been jumping through the hoops with Apple Support on this issue....first time I called they said I should try updating from IOS 4.0 to 4.1....tried that and the issue still persisted...then I called back to update the ticket and get the next steps...they said that the Bank is rejecting the request for verification and that is why it keeps prompting (which doesn't make sense since the confirmation seems to go through successfully). The rep also contacted the iTunes dept and had them run the verify manually and said the bank rejected it. The next hoop they want me to jump through is calling the bank to verify that the account is in good standing and inquire about the rejected requests. I'm fairly certain the bank account is in good standing....will verify of course....but I find it hard to believe that all the people who have posted here, plus countless others that are experiencing the same issue but haven't, are ALL having banking issues in the last 24hrs...I'm more convinced there is a disconnect on the back end between iTunes and Financial institutions...
    I'm not sure I buy in to everything I was told...he also told me he has had several calls on this issue and they were all told to check with their banks. He could not verify that any of his past calls were resolved. Needless to say I'm not 100% believing everything he told me....weak response from Apple support on this issue so far.

  • I've updated my phone and I've made a backup. but now it says I must enter my code to restore all my files and I haven't got this code. If I cancel the process or choose something else, all my stuff will be deleted, and I really don't want that.

    I've updated my phone and I've made a backup. but now it says I must enter my code to restore all my files and I haven't got this code. If I cancel the process or choose something else, all my stuff will be deleted, and I really don't want that.
    HELP ME PLEASE!!!

    If, for some reason, your backup got encrypted and you don't know the code, you'll have to set up your phone as new device and start all over again without the backup.
    Warning: If you encrypt an iPhone backup in iTunes and then forget your password, you will not be able to restore from backup and your data will be unrecoverable. If you forget the password, you can continue to back up and use the device, however you will not be able to restore the encrypted backup to any device without the password. You do not need to enter the password for your backup each time you back up or sync.
    If you cannot remember the password and want to start again, you must perform a full software restore and when iTunes prompts you to select the backup from which to restore, choose set up as a new device.
    If you can't get pass the lock screen, connect in recovery mode and restore the phone, you'll have the option to reset the lock secreen passcode.
    iOS: Unable to update or restore and iPhone and iPod touch: Wrong passcode results in red disabled screen
    If you cannot remember the passcode, you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and resync the data from the device (or restore from a backup). If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present. Refer to Updating and restoring iPhone, iPad and iPod touch software.

  • I have a problem with the keyboard on my MacBook. The letters are typing as symbols and the delete and return/enter buttons do not work. Does anybody know how to fix this?

    I have a problem with the keyboard on my MacBook. The letters are typing as symbols and the delete and return/enter buttons do not work. Does anybody know how to fix this?

    Hey skyshade13,
    Thanks for the question. The following article outlines how to restore a previous iTunes library should there be no content after updating. While the article does not speak specifically to your symptoms, attempting the steps by utilizing the "Previous iTunes Libraries" folder may resolve your issue.
    No content shows up in iTunes after updating
    http://support.apple.com/kb/TS1967
    For further information see the following information:
    OS X Lion: iTunes opens to "created by a newer version" alert
    http://support.apple.com/kb/TS3918
    iTunes: How to re-create your iTunes library and playlists
    http://support.apple.com/kb/HT1451
    Thanks,
    Matt M.

  • I have an IPad with a Restriction code that we cannot remember.  Is it possible to delete and restore the IPad without the code?  If not how do I figure out the code or how t? o remove it?

    I have an IPad with a Restriction code that we cannot remember.  Is it possible to delete and restore the IPad without the code.  If not how do I figure out the code or how to remove it?

    The only option is to wipe the device clean and restore it to factory settings.  Hope you have a backup.
    Follow the instructions in  iOS: How to back up your data and set up your device as a new device http://support.apple.com/kb/HT4137 to restore the device to factory settings.
    Once you have setup the device as a new one, you can then sync it back with your iTunes account and all your music, apps, contacts and any other content sync'ed with iTunes will be loaded on the device. Any content that is stored only on the device and not sync'ed with iTunes, like app logins or data, will be lost during this process. Be forewarned that this is a long process and can take a couple of hours or more to complete. This can be painful, but it is necessarily so to prevent users from working around the security settings. After the restore is complete, you can setup a new Restrictions passcode. Make a note of the passcode to avoid this situation in future.
     Cheers, Tom

  • TS4268 I can't get the iMessage or FaceTime to work on my iPod touch.  I updated to the latest iOS.  I have ensured restrictions are off and 'Set Automatically' is selected under date & time settings.  I can enter my apple ID, but it bounces back to the l

    I can't get the iMessage or FaceTime to work on my iPod touch.  I updated to the latest iOS.  I have ensured restrictions are off and 'Set Automatically' is selected under date & time settings.  I can enter my apple ID, but it bounces back to the first login screen.

    I just hit the home key very fast 3 times and it worked. Glad to see that someone suggested this to another person with a mini. My gremlins are all gone.  Yea to the forum .......Marci 73361

Maybe you are looking for

  • Error while creating a sync share with Work Folders

    Hi, While testing with the new Windows 2012 R2 feature, Work folders, I've come across a config error. In the new sync share wizard, I select the home folder path in the test domain. I select none of the options in the Device Policies page. In the re

  • How to transfer NTFS files to HFS+ hard drive?

    I have multiple large video files on NTFS formatted harddrive so read only.  I have time capsule backup, and two external hard drives (1) older WD TB NTFS with 500 GB of video files almost all larger than 4 GB.  Have new Seagate 3 TB hard drive.  I w

  • Iphone apps .... how do I get my old 3GS apps onto my new iphone4?

    I am sure this has been asked many times before, but help me please because I just don't get it. My Iphone 3GS was synched to my macbook itunes but the hard drive in my notebook failed and had to be replaced. So now with my new iphone how do I get th

  • I have got problem with my 90 day trial

    Hi i just bought Brand New 6220 Classic from ebay.co.uk uk seller, but i think he just bring the phone from Hong Kong, i have got the 90 days free trial of the Hong Kong & Macau maps, is it possible to get the United Kingdoms free trial??

  • Adobe Premiere CC, Trying to Sync 2 camera for Multi cam edit.

    Hi, I am at present trying out Premeire CC, my workflow is usually a minimum of a 2 camera shoot for weddings, what I am trying todo in CC is to try and sync all the clips together for a multi cam sequence ready to edit. I have followed various optio