On key press not working

<af:inputText id="phone" onkeypress="return notext(event)" label="phone" inlineStyle="width:70px;" value="#{MembersBB.p.phone}"/>
function notext(e)
var charCode = (e.which) ? e.which : event.keyCode
if (charCode > 31 && (charCode < 48 || charCode > 57))
return false;
alert(charCode);
return true;
works fine in javascript, but not here.. whats the solution, not even the alert is working?

i Did this and it works..
function notext(e)
//alert(event.keyCode);
var charCode = (e.which) ? e.which : event.keyCode
if (charCode > 31 && (charCode < 48 || charCode > 57))
event.keyCode = 0;
return false;
// alert(charCode);
return true;
however, In javae script..you can do without event.keyCode = 0;

Similar Messages

  • F4 help key does not work in ESS on ITS in Portal

    Hello All,
    F4 help key is not working in all iviews in ESS in Portal.When i try to press it nothing happens and no pop up appears,kindly please suggest wt might be the cause of this error? Iam tired struggling with this issue and not able to trace out reason for the same.My Email Id is [email protected] .Plz revert at earliest.
    regards,
    Saumya

    Hi,
      This kind of problem is known when webgui is being started from an IAC, e.g. HRWPC_FC_EXEC
    You have to set parameter ~webgui_popups 1 in the service file of this IAC.
    BR,
    Disha.
    Pls reward points for helpful answers.

  • Modifer keys do not work with mouse in Illustrator

    Below is a copy of a bug report I just submitted to Adobe. I don't suppose any users have run across this and found a solution or workaround?
    I found someone else with this problem in an archived topic thread, but the only response that poor fellow got was an accusation of not following instructions (His problem wasn't user error, BTW).
    Thanks
    ******BUG******
    Concise problem statement:
    Modifer keys do not work with mouse: For example, free transform or rotate behaviors that require "Click-Ctrl" .
    Steps to reproduce bug:
    1. select object
    2. select free transform tool
    3. left click (without releasing) a corner of the bounding box.
    4. start dragging
    5. press ctrl
    Results:
    object behaves as though the ctrl key was not pressed. i.e. the cursor does not change shape and the object scales rather than distorts.
    Expected results: The cursor should change shape as the ctrl key is pressed and the object should distort rather than scale.
    Additional information: This behavior is intermittent. Occasionally Illustrator recognizes the "Click-Ctrl" combination and behaves exactly as the help file predicts it will. The cursor changes shape and the object distorts rather than scales. I can offer no rhyme or reason for when Illustrator will behave as advertised and when it will ignore the modifier keys.
    The example above involves the free transform tool, but the problem occurs just as often with other tool behaviors that require a modifier key + mouse combination.
    Primarily using Wacom Intuos3 tablet. (with latest drivers), but have also tried combinations with microsoft mouse or both mice installed.
    Also, immediately after an occurrence Illustrator bug, left AI open, went to a different app that uses mouse+modifier (Ctrl+Click). That different app recognizes Ctrl+Click with no problems whatsoever.

    Thanks Guys,
    Good to know it's working for you. I guess that's the nature of intermittent bugs. Of course, Adobe's bug report form has a field for version, which I, of course, filled in. Sorry I didn't add it to this post. I'm using the latest version CS3 v13.0.2.
    Stephen,
    Sorry I was not more clear when I said, "For example, ...". I was talking about the modifier keys not working with several different tools. The Free Transform tool advertises functionality that is supposed to work with a "Click (down, but don't release)then hold down Ctrl" combination. The Rotate tool advertises a behavior that is supposed to work with an "Alt-Click" combination. These are just 2 examples of the modifier keys not working. I focused primarily on one example in the bug report(ctrl after and in addition to click in the free transform tool, not alt-click in the rotate tool).
    Here is what I expect(quoted from Adobe's CS3 help file)
    (From the "Distort Objects with the Free transform tool" help topic)
    "Select one or more objects.
    Select the Free Transform tool .
    Start dragging a corner handle on the bounding box (not a side handle), and then do one of the following:
    Hold down Ctrl (Windows) or Command (Mac OS) until the selection is at the desired level of distortion.
    Hold down Shift+Alt+Ctrl (Windows) or Shift+Option+Command (Mac OS) to distort in perspective."
    (from the "Rotate an object by a specific angle" help topic:)
    You can control the exact angle of rotation with the Rotate command.
    Select one or more objects.
    "Do one of the following:
    To rotate around the center point, choose Object > Transform > Rotate, or double-click the Rotate tool.
    To rotate around a different reference point, select the Rotate tool. Then Alt‑click (Windows) or Option‑click (Mac OS) where you want the reference point to be in the document window.
    Enter the rotation angle in the Angle text box...."
    These Tool based mouse-key combinations do occasionally work as they are supposed to, so I know what the expected results are supposed to look like, but whether they work or not appears to depend on the phase of the moon, the day of the week, and the color of the president's underwear.
    Other non-tool based mouse-key combinations in Illustrator work consistently all the time - Ctrl-A for Select All as just one example that always works.
    Thanks Again

  • Function keys do not work on new wireless keyboard

    Hello....my good friend just bought a new iMac G5 2.1 spotlight model computer and has had troubles with his new wireless keyboard in that all 16 function keys do not work at all. Got any ideas or is it just a defective keyboard? He bought this at my recommendation so i am trying to make it all work smoothly for him. Would appreciate a quick response as he has now had this mac for 2 weeks and we cannot figure out the problem. Thanks in advance for any and all help

    I have no issues using the Apple BT keyboard. All function keys that apply to the iPad work correctly; display brightness, iPod app control, etc.
    Use the most recent version of iOS and also iTunes on your computer. Try a reset. Press & hold the Power and Home buttons together for 10+ seconds, ignoring the red power-off slider, until you see the Apple logo.
    If that  does not work, then restore the iPad to it factory settings.

  • My laptop keyboard is having problems. I took it if to change my bottom case it worked fine prior and then after just the power key worked. I cleaned everything nothing is bent in the cable. now my power key is not working

    Hi my keyboard is not working I took off the bottom case to change it prior my keyboard was fine and after just the power key worked. I checked everything no portions were bent and it plugged in good. I tried to turn it on this morning and now the power key doors not work??

    Back up all data.
    Triple-click anywhere in the line below to select it:
    pmset -g assertions
    Copy the selected text to the Clipboard (command-C).
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V).
    Post any lines of output that appear below what you entered — the text, please, not a screenshot.

  • My Escape key is not working

    Hi,
    I am Meena.
    I am doing a project using NetBeans and MS-Access.
    When I run my project a internal framed named login loaded on the jdesktoppane which in JFrame.
    So in the login internal frame i used two buttons one for Sign-in and another for sign out.
    So I combined the Sign-in button with Enter key and Sign-out button with Escape key by the following coding.
    I wrote the following coding in LoginInternalFrame->properties->enabled->advanced->Generate PreIntialization Code.
    Action EscFromLogin=new AbstractAction()
    public void actionPerformed(ActionEvent e)
        jButton2.doClick();
    Action OkFromLogin=new AbstractAction()
        public void actionPerformed(ActionEvent e)
           jButton1.doClick();
    getRootPane().getInputMap(jButton2.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE,0,false),"Esc_in_Login");
    getRootPane().getActionMap().put("Esc_in_Login",EscFromLogin);
    getRootPane().getInputMap(jButton1.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false),"Ok_in_Login");
    getRootPane().getActionMap().put("Ok_in_Login",OkFromLogin);In the above coding Enter key works well no problem.that is when I press the Enter key ,it combined with Sign-in button and works well.
    But when I press Escape key,it doesnot combined with Sign-off button.
    that is nothing is happening when I press Esc key.
    So i change the Escape key and test with F1 then F2 then F3 all are combined with Sign-off button and works well.But only the escape key is not working.
    But I have so many internal frames .In all internalframes my esc key works well.But not in the first inter frame(login internalframe)
    I couldnot understand the reason.
    Will you please help me to solve.
    Thank you so much.
    Meena

    mmm, i'm doing some tests and the case is working for me... The reason F1,F2 keys works while ESC don't is that some component is "eating" the ESC key. Probably your password textField, but it is not its default behaviour. For example, try to replace the textField with a FormattedTextField, write something into it and press ESC, this first ESC is consumed by the FormattedTextField, if you press ESC a second time the FormattedTextField not consume it, so the ESC keystroke processing is given to the rest of the componentes until one of they consume it (basically). So, how can you solve th problem? Try to determine which component is the "escape-eater". Once you detected it try to determine which properties are set and if this properties can alter the keyboard mapping. The problem can be difficult to repeat for us because the look and feel, java version, etc. can affect the system behaviour too. A global hook to ESC can also be the reason (maybe esc key it's not reaching ths components), try to override ProcessKeyBindings and log the results....

  • Hello, how much did you pay when some parts of the keyboard keys are not working properly due to accidental spilt of tea?

    I accidentally spilt a tea on the keyboard of my Macbook Air 11'. I managed to wipe the keyboard and saved my laptop. However, I noticed that the Spacebar, Shift and Command keys are not working as it should be. It's like something's stuck inside that makes these keys hard to press as usual. I refered this problem to Amsys, Berwick St London, as the reservations in Apple Stores are full. Do you have any idea how much is the cost for diagnosis and repair if ever?
    Please help.

    if you spilled a good bit of tea, its a serious problem, yes.
    it got inside, and will corode, and bad things will begin to happen.
    Liquid spills, why your MacBook chassis is a one-way valve for spills
    After a substantial spill many people will turn their notebook upside down and shake it, not only does this not work, but it spreads liquid havoc throughout your machine and makes things often as bad as possible.
    The keyboard itself acts like a one way valve in the case of a substantial liquid spill. While liquid pours into the bottom chassis easy, it does not come out easily at all, and in the case of any spill, most of it will not come out by turning it upside down. Disconnect all power and contact Apple for diagnostics and repair.
    Do not attempt to, after a spill, ‘dry out your MacBook’ and test it
    After a spill most people invariably try to “dry out” their notebook by various methods, including hair dryers and otherwise. This both does not work, and after a substantial spill of any magnitude, even if the liquid was water, residue is left behind.
    There are additionally many very tight places inside your notebook where liquids will linger for a very long time, and cause corrosion or worse.
    Immediately unplug your notebook and contact Apple for in shop diagnostics and parts replacement.
    In the case of very minor spills people will “dry out” their notebook and feel success that their notebook is working ok, however invariably in nearly all instances after 4-14 days an error / fault pops up and is usually followed by more.
    In case of a spill, damage estimates are impossible,.....anything can be fixed, without question.......the question is cost.
    contact Apple for in shop diagnostics and cost estimation ....possible parts replacement.  

  • I have a iMac running on an iMac and the F operation keys are not working properly.

    My new iMac bluetooth keyboard is having issues all of the F operation keys are not working exept for F12 witch is supposed to be volume up takes me to mission control. I went into system prefrences and there was no setting in keyboard for the volume keys there are some settings for the operation keys but they are all checked and they are still not working and the settings that are checked arn't even what the keys are supposed to do. Please help.

    SMC RESET
    http://support.apple.com/kb/HT3964
    Shut down the computer.
    Unplug the computer's power cord and ALL peripherals.
    Wait 15 seconds.
    Attach the computers power cable.
    Wait another 5 seconds and press the power button to turn on the computer.
    The 5 second timing is important to a successful reset.
    PRAM RESET
    Zap the PRAM
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • Keyboard keys are not working

    Im on mac OS X 10.6.8 several keyboard keys are not working. For instance the at symbol is not working or question mark and random other punctuation keys. The problem started after running some code from terminal to trun off mouse acceleration and then installing a plug-in to control more accurately the mouse funtions. Ive since uninstalled the plug in and disabled the adjustment in terminal. Ive checked all the normal keyboard funcions to make sure settings were not funky. When I log out and log in as a differnt user the problem with the keyboard is fixed. Someone please help
    Code I ran
    defaults write .GlobalPreferences com.apple.mouse.scaling -1
    http://www.lockergnome.com/osx/2011/07/13/how-to-turn-off-mouse-acceleration-in- os-x/

    Hello lindzthecreator,
    I suggest this part of the article named One or more keys on the keyboard do not respond found here http://support.apple.com/kb/ts1381
    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.
    All the very best,
    Sterling

  • Some keys are not working of my laptop lz801pa#

    Hi
    Recently I installed Windows 8.1 on my laptop (hp pavilion dv6 6115tx entertainment notebook) - lz801pa
    Then I installed Visual studio 2013. everything was working perfectly then.
    I guess when I changed keyboard option in visual studio to C# 2005, after that some of the keys stopped working.
    I also reset that option to default, but the issue is still there. 
    Down & right arrow keys, right arrow key of num pad, 1-5,8,9,0 keys in the first row(up above qwerty keys row) are not working. 
    I am able to press indivisually tab & alt, but alt+tab combination is not able to use for switching between windows/apps.
    Please help me.

    Hello Rdmusale,
    I understand that some of the keys are not working on your notebook computer, and I would be happy to assist you in this matter!
    To correct the output of characters from your keyboard, I recommend following this document on Notebook Keyboard Troubleshooting (Windows 8). This should help correct how the keys appear on your keyboard.
    Please re-post with the results of your troubleshooting, and I look forward to your reply!
    Regards
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • Some Keys are not working on Lenovo G570

    Hello all
    I am new here, looking for some help regarding my Lenovo G570.
    Yesterday, it was working perfectly, I properly shut is down. I have set a BIOS pasword.
    Today, when I switch it on, I was unable to type the pasword becasu some keys were not working. However, I managed to loged in with the help of On Screen Keyboard. After analysing it, I came to know that some keys on numpad includeing 0,2 and on the 2nd line(vertical numerical keys) 1,2,3,4,7,8,9,0 are not working. I tried to re-install the OS but I set a BIOS paswoed containing one of the missing keys.
    Please let me know whether it is a software problem or should i take my laptop to some repairing shop?
    Thanks  
    Solved!
    Go to Solution.

    Hi Asadkhan92,
    Welcome to Lenovo Community!
    As per the query we understood that you are facing an issue with the keyboard in your Lenovo G570 laptop.
    As you have mentioned that the some keys are not working in your laptop, as you have also mentioned that the onscreen keyboard is working, please connect the external keyboard and check  for the issue, this is to confirm if the issue with the hardware or software.
    If the external keyboard works fine and if the keypad is not working then it’s a issue with the keypad of the laptop.  
    Please visit the nearest service centre for further details.
    Click here to open a link where you can select the country and get the exact contact support number. I’m sure they will be a great help.
    Hope this helps! 
    Best regards,
    Ashwin.S
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Some keys are not working

    I have HP pavilion notebook PC with product number F6C53PA#ACJ serial number [Personal Information Removed] BIOS F.34-10/31/2013 keyboard revision 29.34.
    Some keys in my keyboard are not working properly. I couldn't type < and > in microsoft office, on the websites etc.
     

    Hi there
    Welcome to the HP Support Forums! It is a great place to find the help you need, both from other users, HP experts and other support personnel. I understand that some keys are not working on your keyboard. I am happy to help with this. Are those keys working consistently in some applications? For now I would suggest you look at it as a cleaning issue. Perhaps some dust or debris is affecting the key presses.
    Notebook Keyboard Troubleshooting (Windows 8)
    Cleaning your Notebook PC
    Tips for Using, Carrying and Protecting your HP Notebook PC Let me know if that makes any difference.

  • Tab key does not work

    This is very strange, please read.
    My tab key does not work. It will not move from one text field to another.
    I have checked my keyboard settings. "Full keyboard access:" is at the default "Text boxes and lists only".
    I have deleted this user and recreated the user, and with the completely new user the tab key does not work. Other users on the machine it DOES work.
    This is happening now on 3 of our 5 machines.
    Lastly, when I turn on the keyboard viewer (International/Input Menu/Keyboard viewer: it shows you what key the system thinks you are pressing when you press a key on the keyboard), it shows that when I press the tab key, the Command key is being held down instead. It's not showing that the tab key is being pressed.
    Has anyone seen this previously? Again, it's happening on 3 of our 5 machines (some users the tab key works, some users it doesn't). These are fresh user creations (no special software installed, no prefs changed, etc...)
    Thank you for any info!!!

    "Repair Disk Permissions" from Disk Utility may help.
    Also, cmd-opt-n-v (Clear NV RAM) may help as well.
    Mihalis.
    Dual G5 @ 2GHz   Mac OS X (10.4.6)  

  • "backspace", "g" and "h" keys are not working.

    hello,
    my laptop is HP 450 and windows 7.it is one years old. i haven't spilled anyting on it or damaed it in anyway i can think of.
    suddenly the "backspace" , "g" and " h " keys are not working. 
    please help me, because i have to complete my university assignment as soon as possible.
    tank you,
    shehara

    Hi,
    While this could be a hardware issue, it's always worth trying the following.
    Open windows Control Panel, open Device Manager, expand Keyboards, right click the entry 'Standard PS/2 Keyboard' and select Uninstall.
    Shutdown the notebook.
    Then unplug the AC Adapter and then remove the battery.  Hold down the Power button for 30 seconds.  Re-insert the battery and plug in the AC Adapter.
    Tap away at the esc key as you start the notebook to launch the Start-up Menu and then select f10 to enter the bios menu.  Press f9 to load the defaults ( this is sometimes f5, but the menu at the bottom will show the correct key ), use the arrow keys to select 'Yes' and hit enter.  Press f10 to save the setting and again use the arrow keys to select 'Yes' and hit enter.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • HT3529 My ios 7 update has made my message key board not work ?

    After updating to IOS 7 update. It has made my key board not work very well when typing a message.

    Perform a "hard reset" on the device by pressing down and holding the home button and the sleep/wake button for up to 30secs. until you see a black screen with the Apple logo, then release.
    Then test to see if it solved the problem.

Maybe you are looking for