How to capture backspave and delete key events

Hi ,
i would like perform some javascript code on pressing backspace or delete key.
initially i thought of adf clientlsitener keypress event.but this is not capturing backsapce key event
what is the alternate way capture backspace or delete key event?
please help

Hi
the following script cancels the input event when the back key is pressed
       function keyTrap(inputEvent){
         var keycode = inputEvent.getKeyCode();
         if(keycode ==8){
           inputEvent.cancel();
       }Use a clientListener
        <af:inputText label="Label 4" id="it7">
          <af:clientListener method="keyTrap" type="keyDown"/>
        </af:inputText>Frank

Similar Messages

  • Home, End and Delete key behavior modification-10.4.7

    I'm using a PC keybord on my Mini but I share it via a KVM switch with my Dell laptop for work. Toggling between the Widoze machine and the Mac causes me issues because the Home, End and Delete key have different behaviors. How can I modify them in the Mac? Because I have to keep them the same in the laptop.
    Home - Move to the beginning of the current line
    End - Move to the end of the current line
    Delete - Used mostly in Thunderbird to delete emails without opening or needing the mouse. It's useless now.
    Lastly, in windows Firefox, when I click in the URL window, it immediately highlights the entire URL in there so I can just start typing a new one. In OS X firefox, I click right into the middle of the URL. I would like it to behave like the Windows version. This problem is made worse by the Home/End key situation. If there was an easy way to highlight the entire URL (i.e. Shift End in Windows),that would work too. But I'd prefer that it immeidately highlight everything upon clicking in there.
    Thanks all!

    Hi mthhurley!
    I'm a new Mac user and found myself running into the same problems. I don't know if this will help but I started using the arrow keys instead of the end/home keys as the down arrow key will take me to the end of the line I am currently typing as long as it is the last line in the document. The up arrow key behaves the same way.
    As for highlighting text in the URL address window, if you click three times fast it will highlight the whole string for you.
    As I said I'm a very new Mac user so I'm certain there are more experienced users out there with a better answer for you but this is a solution I have found to satisfy myself and I hope it helps you.
    X
    iMac Mac OS X (10.4.7) 2ghz Intel Core Duo, 1GB DDR2 SDRAM
    iMac Mac OS X (10.4.7) 2ghz Intel Core Duo, 1GB DDR2 SDRAM

  • How to capture previously clicked button(previous event)?

    Hi guyz,
    I have frame in which i have different panels. I would like to capture the last clicked button. My objective is to bring a pop-up box(dialog) when anything other than a specific button is clicked in one of the panels. So, i would like to know if i can see what button was clicked previously. Does anyone know?

    How to capture previously clicked button(previous event)?Store it somewhere and then you can use it later:
    ActionListener previousActionEvent;
    JButton b = new JButton();
    b.addActionListener(new ActionListener(){
       public void actionPerformed(ActionEvent evt){
          previousActionEvent = evt;
    });

  • I used time machine to restore on a formatted MAC. Now the HDD space has reduced by 100GB but I cannot see any of the files. How do I find and delete those 100GB data from the HDD?

    I used time machine to restore on a formatted MAC. Now the HDD space has reduced by 100GB but I cannot see any of the files. How do I find and delete those 100GB data from the HDD?

    dglenn9000 wrote:
    I created a new user account just to see if it was my user Library or if there was something wrong with my system. And the new user account is doing most of the same things so I will need to do a full restore anyway.
    Not necessarily. I'd suggest downloading and installing the "combo" update. That's a combination (thus the clever name) of all the updates to Leopard since it was first released, so installing it should fix anything that's gone wrong since then, such as with one of the normal "point" updates. Info and download available at: http://support.apple.com/downloads/MacOS_X_10_5_8_ComboUpdate Be sure to do a +Repair Permissions+ via Disk Utility (in your Applications/Utilities folder) afterwards.

  • I used Duplicate Annihilator to isolate dups in iPhoto on my iMac. At the end it told me it had marked the word duplicate in the comments / description field. How do I find and delete the marked photos?

    I used Duplicate Annihilator to isolate dups in iPhoto on my iMac. At the end of its search, it told me it had marked the word duplicate in the comments / description field. How do I find and delete the marked photos?

    File -> New Smart Album
    Description -> contains -> Duplicate
    will find them.
    Then the keystroke to delete depends on which version of iPhoto you have. All the keyboard shortcuts are under the Help menu.

  • When I connect my iphone to my itunes it says loads of space is being taken up by documents , however i have no documents saved on my phone to my knowledge. how do I find and delete these hidden files ?

    when I connect my iphone to my itunes it says loads of space is being taken up by documents , however i have no documents saved on my phone to my knowledge. how do I find and delete these hidden files ?

    I restored the phone so had no apps on it at all and there was still this certain amount of space used up by documents ! I've already had it in to the apple store and they didn't seem to have a clue either ! Ugh ! Wouldn't mind so much if the phone was free with a contract but I actually spent 450 quid buying this phone and it's always full of "nothing" so virtually unusable

  • How do i find and delete duplicate in my song library???????

    How do i find and delete duplicate in my song library???????

    Under the file tab in iTunes, select Display Duplicates. From there you can delete them as well.

  • How can I find and delete duplicate files in Mt Lion?

    As a competent, but self-trained mac user for 30 years, I'm totally baffled by the sudden appearance of multiple duplicate documents and .jpgs in my imac files. How can I find and delete them?

    Duplicate Annihalitor - http://brattoo.com/propaganda/ - or Decloner - http://www.pixelespressoapps.com/decloner/
    LN

  • How can I remove and delete songs that are stored in iCloud? I really dislike this feature.

    I really hate this idea of having all of the songs that aren't on your iPhone being out back in there through I cloud. They aren't on my device for a reason. Thanks a lot iTunes.
    How can I remove and delete these songs from my iTunes account in purchased history.

    Transfer to your PC/Mac
    see here
    iOS: Import personal photos and videos from iOS devices to your computer
    Then copy to Flash drive

  • How can I select and delete the fill color (white background) of a live trace (B&W) with in an actio

    How can I select and delete the fill color (white background) of a live trace (B&W) with in an action set?
    Illustrator CS4 in windows XP.

    Maybe Li[ve trace] is not t]he way[ to go
    I have some suggestion one leave it as is and use a blending mode of multiply to give it a color background like this
    leave it as is make it a grayscale tiff import int Illustrator and color it it in Illustrator like this
    Or trace over it with the brush tool aand then give it a color ground.
    Or do the original over and do a cleaner job with no tone or a minimum of tone. Then Live trace.

  • HOW CAN I GROUP AND DELETE TEXT MESSAGES IN BULK

    HOW CAN I GROUP AND DELETE TEXT MESSAGES IN BULK

    message - edit - select each text message - delete.
    that is the only method to delete message on your iphone.

  • How do I store and delete files on the iphone

    how do I store and delete files on the iphone

    Files/documents need to be stored/associated within an app on the iPad, unlike 'normal' computers there is no file system which allows you to save files with no means of being able to read/use them. So if you want to store a file on the iPad you first need an app on the iPad that supports that file type.
    How you then get the file onto the iPad and into the app will depend on what the app is and what transfer method(s) it supports. e.g. some apps use the file sharing section at the bottom of the device's apps tab when connected to your computer's iTunes, some apps support the transfer of files via your wifi network, the iBooks app uses the Books section of your iTunes (and the device's Books tab) to sync content, and other transfer methods include email attachments, Dropbox etc. The file is then found by going into your chosen app and opening/using the file.

  • How can I view and delete photos from my I cloud

    How can I view and delete photos from my I cloud

    Welcome to the Apple Community.
    If you mean from iCloud.com, you can't.

  • How can I identify and delete duplicates on the latest version of itunes?

    How can I identify and delete duplicates on the lastest version of iTunes?

    The show duplicates/show exact duplicates features have been left out of iTunes 11. Rumor suggests they will be restored in the next build. In the meantime I have written two Windows scripts to make playlists of Duplicates and Exact Duplicates, either from a selection of tracks or the entire library. Note that, as with the iTunes feature, this list makes no distinction between "originals" and "dupes", you have to decide which is which.
    There is also my DeDuper script for automatically removing duplicate copies but keeping one remaining copy of each set. This can preserve ratings, play counts, playlist membership, etc. which are lost in a manual clean up. Please take note of the warning to backup your library before deduping. See this thread for background on deduping and the script.
    If you want to manually remove duplicate tracks use shift-delete to remove selected tracks from the library as well as the playlist. Keep one of each repeated group of files and don't send the others to the recycle bin unless you are sure that there are multiple files on the disc as opposed to multiple entries to the same file. Same advice to backup applies.
    tt2

  • How can I find and delete duplicate photos?

    How can I find and delete duplicate photos in iPhoto 2011?

    Duplicate Annihalitor - http://brattoo.com/propaganda/ - or Decloner - http://www.pixelespressoapps.com/decloner/
    LN

Maybe you are looking for

  • Behaviour change of synchronous reply after patching to 10.1.3.4

    Hi people , i have a process like this: [http://www.jettmedia.com/images/630_syncReply10134Test.jpg] Normally in 10.1.3.1 , 10.1.3.3.x ; the process will continue after a partial reply, and any fault uncatched in the process would terminate the flow.

  • Upgrade 10.4 to 10.5 virtual users

    Hi, I am planning on migrating 10.4 users to a new 10.5 machine. I plan to follow the Upgrading and Migrating <http://images.apple.com/server/macosx/docs/Upgradingand_Migratingv10.5.pdf> guide to get all their mail moved. One question I have is that

  • GRAPH USING OO ABAP

    Hi guys,   i want to change stadard program GFW_PROG_BAR according to my requirement.My rquirement i.e i get the values from database and for those values to draw the graph.i am not able to understand where i pass the values? Thanks, Mahesh.

  • How to recover tools tablespace???

    Hi, actually i was playing my database,where i have done few things like.. 1.i manually delete backups of my database. 2.create autobackup of control file and and restore autobackup controlfiles which replcae previous controlfile. 3.after restoring m

  • Forgot login and password for WRT54GX2

    Hey guys, I'm trying to connect my xbox 360 to my router but its been so long that i forgot my login information for the router. i do not have the setup cd either. i need some way of reseting the password so i can access the setup and get my wep key!