Non-repeating multiple key press issues
My g/f has a G4 Titanium Onyx and seemingly randomly, the keyboard has started acting up.
The bottom row of keys works, but anything above it gives out multiple characters on a single keypress. These are non-repetative. For example hitting 'l' doesn't cause 'llll' but '963.'
The same keypress gives the same array of incorrect characters every time, but they don't seem to follow a pattern, one key even seems to work like the volume key.
To the best of my knowledge it hasn't been dropped, had anything spilt on it, of been damaged in anyway since the last time it was working well.
Any ideas as to what's causing this? The missus is most upset.
Hi, Sam. Does "g/f" = "grandfather"?
The behavior you describe is a new one on me.
First check to make sure the Num Lock key isn't depressed (the light beside it should be lit if it is). With Num Lock depressed, the m, slash, j, k, l, semicolon, u, i, o, p, 7, 8, 9, and zero keys should produce numeric-keypad characters, and most of the others should produce nothing. That's not what you're seeing, but I suppose the Num Lock key might, if it's depressed, be modifying the way some other error or malfunction shows up. If it isn't depressed, try connecting an external USB keyboard and see whether that behaves the same way. If the external Kb works properly, the built-in keyboard is bad or not securely connected to the logic board. Release the keyboard latches and tip it back onto the palm rests, then disconnect and reconnect its ribbon cable connector. If there's no improvement, replace the keyboard or have Gramps use the external KB instead.
If the problem occurs with the external KB too, boot to your OS install CD and try to set up and name a new admin user account. If you find that you can't do that because you can't type normally with either KB, even when booted to the CD, you have some hardware problem that's not in the KBs, and it may be time to have a technician look at the PB.
Similar Messages
-
When I hold Tab + w space doesn't work click (I have my controls set as this for a game).
Is there anyway to make it so i can hold those two keys and have spacebar work?
Im on a MacBook Pro Retina 13 inch with latest version of yosemite
Thanks for the helpHere is an example of both multiple key press and repeat delay ignore. It is a terrible example of animation. Do not us this animation loop in a game. It will flicker far too much.import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Test extends JFrame implements Runnable {
boolean upPressed=false, downPressed=false, leftPressed=false, rightPressed=false;
public Test() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
addKeyListener(new KeyAdapter() {
public void keyPressed(KeyEvent ke) {
switch (ke.getKeyCode()) {
case KeyEvent.VK_UP: upPressed = true; break;
case KeyEvent.VK_DOWN: downPressed = true; break;
case KeyEvent.VK_LEFT: leftPressed = true; break;
case KeyEvent.VK_RIGHT: rightPressed = true; break;
public void keyReleased(KeyEvent ke) {
switch (ke.getKeyCode()) {
case KeyEvent.VK_UP: upPressed = false; break;
case KeyEvent.VK_DOWN: downPressed = false; break;
case KeyEvent.VK_LEFT: leftPressed = false; break;
case KeyEvent.VK_RIGHT: rightPressed = false; break;
setSize(250,250);
setVisible(true);
Thread timer = new Thread(this);
timer.start();
public static void main(String[] args) {
new Test();
public void run() {
while (true) {
repaint();
try { Thread.sleep(30);} catch (Exception e) {}
public void paint(Graphics g) {
g.setColor(Color.white);
g.fillRect(0,0,getWidth(), getHeight());
g.setColor(Color.black);
g.drawString("Up",40,40);
if (upPressed) g.drawString("Pressed",100,40);
g.drawString("Down",40,60);
if (downPressed) g.drawString("Pressed",100,60);
g.drawString("Left",40,80);
if (leftPressed) g.drawString("Pressed",100,80);
g.drawString("Right",40,100);
if (rightPressed) g.drawString("Pressed",100,100);
} -
Multiple key press's with Bluetooth Keyboard
I'm ready to update my mac to a new G5 imac and fancy getting the wireless bluetooth keyboard and mouse with it.
I have one question, has anyone experienced problems when holding down multiple keys on the keyboard and moving the mouse all at once (Using illustrator)?
In my office I have the misfortune of having to use a PC, I have had a number of wireless keyboard and mouse combos, all of them when using Illustrator and photoshop can not handle multiple key press's and mouse movement.
ie if I'm duplicating an object by dragging a copy of it across the screen, on the PC it will work but it always "releases" after a couple of seconds and drops the copy in the where I don't want it which gets very frustrating (this only happens with wireless).
As I do a lot of work at home, I hoping this wont be the case with the mac's bluetooth K & M.
thanks
RussellThe shift key works just fine on my Bluetooth keyboard. So I would imagine this is an issue with your keyboard.
-
I own a Pre Plus on Verizon. I have read the numerous posts describing issues with keyboard key press difficulties. What I haven't seen, is any resolution to the problem. Personally, The keyboard size is OK. The unreliable key press issues are driving me nuts. The worst key on my Pre+ is the "e" key and some others, mostly on the top row of keys. I first press, nothing, press again, maybe nothing or multiple entries of "e", The "y" is second worst. Same issues. Is ANYBODY doing anything to resolve this problem?
Post relates to: Pre Plus p101vzw (Verizon)
This question was solved.
View Solution.The last software update 1.4.11 addressed this issue on the Verizon Palm Pre Plus. If you are on earlier software version you need to update your device to the latest SW version. If you are on the latest SW version you may have a hardware problem with the device. You should go to Device Info from your launcher, tap the drop-down menu, choose Tests, then Interactive Tests, then test your keypad for problems. If this test fails then you should get a replacement device from Verizon.
-
Hai all
How can a j2me application withstand multiple key press while doing some process.
Please help me with some ideas
Thanks
JineshProblem is, Redtruck, I can only get FCP to register one press of t. I can reasign select all tracks forward to a single t but when i go to select track forward and press t it asks me if i want to reassign t to this command and then overrides the select all forward shortcut (which reverts back to tttt automatically).
I can't seem to find a way to enter multiple "t"s when assigning a shortcut.
I hope this makes sense (I'm almost confusing myself). -
How do you register multiple key presses at the same time?
Hi. I'm trying to write a first person game in OpenGL and I'm having some trouble with key listening. Right now I just use the basic AWT KeyListener. The problem that arises is that whenever I hold down a key, such as a movement key, there is a short pause after it moves me in the appropriate direction, and only after the pause does it start continuously moving me. In addition to that, I can't press multiple keys at once to get diagonal movement (I use WASD for movement). Is there something I can do with AWT to fix both of these problems, or is there something other than AWT that I should use that would be better?
the pause is the typomatic rate of the keyboard, you can avoid that by using the keyPressed and setting a flag then a sleep(myDelayTime).... if they keyRelease--and clearing of the flag--hasn't happened after the sleep, then you're key is still down so keep firing, moving, or what ever.
-
Recognizing multiple key presses in As3
Hi,
I have a simple game with three keyboard inputs - left, right and fire
I want to be able to log when a key is pressed and released. In the game, you can be in the following states:
None
Left only - keyz on the keyboard
Right only - keyc on the keyboard
Fire only - keyx on the keyboard
Left and Fire - keyz and Keyx on the keyboard
Right and Fire - Keyc and Keyx on the keyboard
When Left key is pressed for example, it should log LeftKeypressStart and when it is released, it shoul log leftKeyPressStop. The same should happen to Right and Fire keys when they are pressed individually.
Now, for the game to be in Left and Fire state either of the three conditions are true:
Left key can be pressed and held down before the fire button is pressed and held down or
Fire button is pressed and held down before left is pressed and held down or
Both keys pressed down simultenuosly (although this condition will rarely occur as we are not robots)
Similar conditions should be true for the game to be in the Right and Fire State
Now considering the first condition,when Left key is down, I want the game to log LeftKeypressStart but as soon as the Fire key is down, it should log LeftKeyPressStop and also Log LeftandFireKeypressStart. Then if Fire is released first, I want it to log LeftandFirKeypressStop and then log LeftKeyStart. but if Left is released first, it should log LeftandFirKeypressStop and then lof FireKeyPressStart.
This is what I have at the minute:
private function onKeyPress (evt:KeyboardEvent)
if (evt.keyCode == 67 && evt.keyCode !=88 && evt.keyCode != 90)
//log Right
else if (evt.keyCode != 67 && evt.keyCode !=88 && evt.keyCode == 90 )
//log Left
else if (evt.keyCode != 67 && evt.keyCode !=90 && evt.keyCode == 88)
//log Fire
else if (evt.keyCode == 67 && evt.keyCode !=90 && evt.keyCode == 88 )
//log RF
private function onKeyRelease(evt:KeyboardEvent)
if (evt.keyCode == 67 && evt.keyCode !=88 && evt.keyCode != 90)
//stop right
else if (evt.keyCode != 67 && evt.keyCode !=88 && evt.keyCode == 90 )
//stop Left
else if (evt.keyCode != 67 && evt.keyCode !=90 && evt.keyCode == 88)
//stop Fire
else if (evt.keyCode == 67 && evt.keyCode == 88 && evt.keyCode !=90 )
// stop RFThere can only be one evt.keyCode per keypress, so your approach will not work. All you need to do is determine which key caused the function to execute. If you want to keep track of which keys are down, just create three Boolean variables, as in...
var leftDown:Boolean = false;
var rightDown:Boolean = false;
var fireDown:Boolean = false;
and set those values to true or false and make use of them in whatever other code you intend.
private function onKeyPress (evt:KeyboardEvent)
if (evt.keyCode == 67)
rightDown = true
else if (evt.keyCode ==88)
leftDown = true
else if (evt.keyCode == 88)
fireDown = true
// process per whatever values are true/false
and in the key up function set them back to false in a similar fashion. -
Keydown method to enter on key presses issue
I can't ever get the keydown method to enter on key presses
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo" width="100%" height="100%" >
<s:keyDown>
<![CDATA[
if (event.charCode == Keyboard.ESCAPE)
//show the button if leaving full screen
if(fullScreenState == StageDisplayState.FULL_SCREEN){
toggleFullScreen();
]]>
</s:keyDown>Hi,
I think there is anther way. like
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo" width="100%" height="100%" keyDown="application1_keyDownHandler(event)">
<fx:Script>
<![CDATA[
protected function application1_keyDownHandler(event:KeyboardEvent):void
// your code
]]>
</fx:Script>
</s:Application> -
Detecting multiple key presses
Using the code below I am trying to detect keypresses for a java applet which involves holding down of several keys at once. I have 2 problems, probably related. Firstly I can only detect 3-4 simultaneous keys being held down and secondly the keyPressed and released! events are continually fired while a key is held down not just when it was first pressed as you would think. I would like to be able to detect up to a maximum of 16 keys being held down at once, is this possible? I am working on a unix system in x-windows which I think accounts for the auto-repeat problem, but why am I having trouble detecting multiple simultaneous keys being held down?
It there a boolean function I can call to check the state of given keys at a given time, that would be very useful?
Any help is appreciated.
Ian
public void keyPressed(KeyEvent e) {
int keyCode = e.getKeyCode();
switch(keyCode){
case java.awt.event.KeyEvent.VK_O: //o
odown=true;
break;
case java.awt.event.KeyEvent.VK_P: //p
pdown=true;
break;
case java.awt.event.KeyEvent.VK_Q: //q
qdown=true;
break;
case java.awt.event.KeyEvent.VK_W: //w
up=true;
break;
case java.awt.event.KeyEvent.VK_A: //a
left=true;
break;
case java.awt.event.KeyEvent.VK_S: //s
down=true;
break;
case java.awt.event.KeyEvent.VK_D: //d
right=true;
break;
}//method keypressed
public void keyTyped(KeyEvent e) {
}//method keytyped
public void keyReleased(KeyEvent e) {
int keyCode = e.getKeyCode();
switch(keyCode){
case java.awt.event.KeyEvent.VK_O: //o
odown=false;
break;
case java.awt.event.KeyEvent.VK_P: //p
pdown=false;
break;
case java.awt.event.KeyEvent.VK_Q: //q
qdown=false;
break;
case java.awt.event.KeyEvent.VK_W: //w
up=false;
break;
case java.awt.event.KeyEvent.VK_A: //a
left=false;
break;
case java.awt.event.KeyEvent.VK_S: //s
down=false;
break;
case java.awt.event.KeyEvent.VK_D: //d
right=false;
break;
}//method keyReleasedDid you ever find a solution to this problem. I am experiencing a similar problem. I want to be able to disable the auto-repeat function of the keyboard, so that I can tell if the user is holding down the key, or pressing it several times.
If you have found a solution please let me know at [email protected]
Thanks,
Ben Newton -
Keyboard sticks repeating last key press
Since I bought a new PC I have been having an issue with keyboard input.
Quite regularly the keyboard appears to crash continually repeating the last keyboard press. Removing the USB port and plugging it back in restores normal order.
This does not happen in windows on the same machine. It did not happen using ARCH on my old PC but with the same keyboard. So I suspect something software related to do with the motherboard.
For reference they keyboard is a Microsoft Natural Ergonmic 4000 keyboard.
Motherboard/CPU is Intel Haswell based.
Gigabyte Z87-D3HP Intel Z87
Intel Core i5-4670
I was suprised to find no one else with this issue which might mean something but I don't know.
Any help much appreciated. This makes Arch on my new PC basically unusable.Is the keyboard directly connected to the machine or, e.g. through a usb hub? Did you try switching to another usb port?
-
Assigning multiple key press in shortcuts keyboard
I find that i use the select all tracks forward far more than select track forward so would like to change my shortcuts to t for select all tracks and tt for select track. Problem is that I can't get Customize Keyboard to accept multiple presses of t - it simply registers the single press of t and asks if I want to change the shortcut it is assigned to.
Any ideas?
Thanks.Problem is, Redtruck, I can only get FCP to register one press of t. I can reasign select all tracks forward to a single t but when i go to select track forward and press t it asks me if i want to reassign t to this command and then overrides the select all forward shortcut (which reverts back to tttt automatically).
I can't seem to find a way to enter multiple "t"s when assigning a shortcut.
I hope this makes sense (I'm almost confusing myself). -
Multiple key presses I'm stuck!!
i want to make a hidden navigation thingy so that if the user
types a word, but only the whole word it goes to next marker,
i know the keyUp and KeyDown navigation but how do i make it
only work when all have been pressed?
Thank youHow about storing the keystrokes in a global string?
Something like this:
on startMovie
global gKeyString
gKeyString = “”
end
on keyDown
global gKeyString
password = “abracadabra”
gKeyString = gKeyString & _key.key
if gKeyString.length > password.length then
gKeyString = chars (gKeyString,
gKeyString.length-password.length, gKeyString.length)
end if
if gKeyString = password then
go frame “secretPlace”
end if
end
I've not tested this code but it should work with little or
no modification. -
How to handle multiple key press in numeric keys
I have used the code from eta . Code is somethg like tis
lastKeyPress = System.currentTimeMillis();
protected void keyPressed(int keyCode){
boolean keyRepeated = false;
if(System.currentTimeMillis() - lastKeyPress < 1000 &&
lastKey == keyCode) {
keyRepeated = true;
lastKey = keyCode;
lastKeyPress = System.currentTimeMillis();
switch(keyCode) {
case KEY_NUM0 :
case KEY_NUM1 :
case KEY_NUM2 :
case KEY_NUM3 :
case KEY_NUM4 :
case KEY_NUM5 :
case KEY_NUM6 :
case KEY_NUM7 :
case KEY_NUM8 :
case KEY_NUM9 :
case KEY_POUND :
System.out.println(keyCode);
System.out.println(keyRepeated + " Repeat");
But the 'keyRepeated ' always returning false. It doesnt satisfies the 'if' condition. So i m unable to differentiate btween 'a' ,'b' and 'c'. Pls any one take me to the correct solutionsure pls follow this snippet
private char getChar(int keyCode, boolean keyRepeated,int mode) {
switch(keyCode) {
case KEY_STAR :
if(keyRepeated) {
if(lastChar == symbols[0])
return symbols[1];
else if(lastChar == symbols[1])
return symbols[2];
else if(lastChar == symbols[2])
return symbols[3];
else if(lastChar == symbols[3])
return symbols[4];
else if(lastChar == symbols[4])
return symbols[5];
else if(lastChar == symbols[5])
return symbols[6];
else if(lastChar == symbols[6])
return symbols[7];
else if(lastChar == symbols[7])
return symbols[8];
else if(lastChar == symbols[8])
return symbols[0];
return symbols[0];
case KEY_NUM1 :
if(keyRepeated) {
if(lastChar == '1')
return symbols[0];
else if(lastChar == symbols[0])
return symbols[1];
else if(lastChar == symbols[1])
return symbols[2];
else if(lastChar == symbols[2])
return symbols[3];
else if(lastChar == symbols[3])
return symbols[4];
else if(lastChar == symbols[4])
return symbols[5];
else if(lastChar == symbols[5])
return symbols[6];
else if(lastChar == symbols[6])
return symbols[7];
else if(lastChar == symbols[7])
return symbols[8];
else if(lastChar == symbols[8])
return '1';
return '1';
case KEY_NUM2 :
if(mode==LOWERALPHA){
if(keyRepeated) {
if(lastChar == 'c')
lastChar = '2';
else if(lastChar == '2')
lastChar = 'a';
else
lastChar++;
return lastChar;
return 'a';
}else if(mode==UPPERALPHA){
if(keyRepeated) {
if(lastChar == 'C')
lastChar = '2';
else if(lastChar == '2')
lastChar = 'A';
else
lastChar++;
return lastChar;
return 'A';
}else if(mode==NUMERIC){
if(keyRepeated)
lastChar='2';
else{
lastChar='2';
return lastChar;
case KEY_NUM0 :
if(keyRepeated) {
if(lastChar == '0')
lastChar = ' ';
//else
//lastChar++;
return lastChar;
return '0';
case KEY_NUM3 :
if(mode==LOWERALPHA){
if(keyRepeated) {
if(lastChar == 'f')
lastChar = '3';
else if(lastChar == '3')
lastChar = 'd';
else
lastChar++;
return lastChar;
return 'd';
}else if(mode==UPPERALPHA){
if(keyRepeated) {
if(lastChar == 'F')
lastChar = '3';
else if(lastChar == '3')
lastChar = 'D';
else
lastChar++;
return lastChar;
return 'D';
}else if(mode==NUMERIC){
if(keyRepeated)
lastChar='3';
else{
lastChar='3';
return lastChar;
case KEY_NUM4 :
if(mode==LOWERALPHA){
if(keyRepeated) {
if(lastChar == 'i')
lastChar = '4';
else if(lastChar == '4')
lastChar = 'g';
else
lastChar++;
return lastChar;
return 'g';
}else if(mode==UPPERALPHA){
if(keyRepeated) {
if(lastChar == 'I')
lastChar = '4';
else if(lastChar == '4')
lastChar = 'G';
else
lastChar++;
return lastChar;
return 'G';
}else if(mode==NUMERIC){
if(keyRepeated)
lastChar='4';
else{
lastChar='4';
return lastChar;
case KEY_NUM5 :
if(mode==LOWERALPHA){
if(keyRepeated) {
if(lastChar == 'l')
lastChar = '5';
else if(lastChar == '5')
lastChar = 'j';
else
lastChar++;
return lastChar;
return 'j';
}else if(mode==UPPERALPHA){
if(keyRepeated) {
if(lastChar == 'L')
lastChar = '5';
else if(lastChar == '5')
lastChar = 'J';
else
lastChar++;
return lastChar;
return 'J';
}else if(mode==NUMERIC){
if(keyRepeated)
lastChar='5';
else{
lastChar='5';
return lastChar;
case KEY_NUM6 :
if(mode==LOWERALPHA){
if(keyRepeated) {
if(lastChar == 'o')
lastChar = '6';
else if(lastChar == '6')
lastChar = 'm';
else
lastChar++;
return lastChar;
return 'm';
}else if(mode==UPPERALPHA){
if(keyRepeated) {
if(lastChar == 'O')
lastChar = '6';
else if(lastChar == '6')
lastChar = 'M';
else
lastChar++;
return lastChar;
return 'M';
}else if(mode==NUMERIC){
if(keyRepeated)
lastChar='6';
else{
lastChar='6';
return lastChar;
case KEY_NUM7 :
if(mode==LOWERALPHA){
if(keyRepeated) {
if(lastChar == 's')
lastChar = '7';
else if(lastChar == '7')
lastChar = 'p';
else
lastChar++;
return lastChar;
return 'p';
}else if(mode==UPPERALPHA){
if(keyRepeated) {
if(lastChar == 'S')
lastChar = '7';
else if(lastChar == '7')
lastChar = 'P';
else
lastChar++;
return lastChar;
return 'P';
}else if(mode==NUMERIC){
if(keyRepeated)
lastChar='7';
else{
lastChar='7';
return lastChar;
case KEY_NUM8 :
if(mode==LOWERALPHA){
if(keyRepeated) {
if(lastChar == 'v')
lastChar = '8';
else if(lastChar == '8')
lastChar = 't';
else
lastChar++;
return lastChar;
return 't';
}else if(mode==UPPERALPHA){
if(keyRepeated) {
if(lastChar == 'V')
lastChar = '8';
else if(lastChar == '8')
lastChar = 'T';
else
lastChar++;
return lastChar;
return 'T';
}else if(mode==NUMERIC){
if(keyRepeated)
lastChar='8';
else{
lastChar='8';
return lastChar;
case KEY_NUM9 :
if(mode==LOWERALPHA){
if(keyRepeated) {
if(lastChar == 'z')
lastChar = '9';
else if(lastChar == '9')
lastChar = 'w';
else
lastChar++;
return lastChar;
return 'w';
}else if(mode==UPPERALPHA){
if(keyRepeated) {
if(lastChar == 'Z')
lastChar = '9';
else if(lastChar == '9')
lastChar = 'W';
else
lastChar++;
return lastChar;
return 'W';
}else if(mode==NUMERIC){
if(keyRepeated)
lastChar='9';
else{
lastChar='9';
return lastChar;
default :
return '\u200D';
} -
Surprising behaviour ..key pressed key event
Hello,
I am experiencing a supprising event key press issue. I have written below code in which my code getting called even though I didnt press any of the key,
_entryPane.getTextArea().addKeyListener(new KeyAdapter() {
public void keyPressed(KeyEvent e) {
doSendTypeStatus();
if(e.getKeyChar()==KeyEvent.VK_ENTER) {
if(e.isControlDown()) {As shown above , doSendTypeStatus() function getting called automatically ,i.e. with out being pressed any of the key on key board .
Thread [AWT-EventQueue-0] (Suspended (breakpoint at line 82 in LivehelpTextEntryPanel$1))
LivehelpTextEntryPanel$1.keyPressed(KeyEvent) line: 82
TextAreaPane$MyTextArea(Component).processKeyEvent(KeyEvent) line: 5058
TextAreaPane$MyTextArea(JComponent).processKeyEvent(KeyEvent) line: 2388
TextAreaPane$MyTextArea(Component).processEvent(AWTEvent) line: 4909
TextAreaPane$MyTextArea(Container).processEvent(AWTEvent) line: 1569
TextAreaPane$MyTextArea(Component).dispatchEventImpl(AWTEvent) line: 3615
TextAreaPane$MyTextArea(Container).dispatchEventImpl(AWTEvent) line: 1627
TextAreaPane$MyTextArea(Component).dispatchEvent(AWTEvent) line: 3477
DefaultKeyboardFocusManager(KeyboardFocusManager).redispatchEvent(Component, AWTEvent) line: 1713
DefaultKeyboardFocusManager.dispatchKeyEvent(KeyEvent) line: 627
DefaultKeyboardFocusManager.preDispatchKeyEvent(KeyEvent) line: 831
DefaultKeyboardFocusManager.typeAheadAssertions(Component, AWTEvent) line: 741
DefaultKeyboardFocusManager.dispatchEvent(AWTEvent) line: 592
AgentFrame(Component).dispatchEventImpl(AWTEvent) line: 3506
AgentFrame(Container).dispatchEventImpl(AWTEvent) line: 1627
AgentFrame(Window).dispatchEventImpl(AWTEvent) line: 1606
AgentFrame(Component).dispatchEvent(AWTEvent) line: 3477
EventQueue.dispatchEvent(AWTEvent) line: 456
EventDispatchThread.pumpOneEventForHierarchy(int, Component) line: 201
EventDispatchThread.pumpEventsForHierarchy(int, Conditional, Component) line: 151
EventDispatchThread.pumpEvents(int, Conditional) line: 145
EventDispatchThread.pumpEvents(Conditional) line: 137
EventDispatchThread.run() line: 100 can any one please help me in resolving this issue. I am implementing typing status feature in my chat application. but due to this key event behavior , my implementation is failing completely.
Looking for reply.
thanks in advance
AniWhat is the question?
doSendTypeStatus() function getting called automatically ,i.e. with out being pressed any of the key on key board .No, it is getting called whenever a key is pressed in the text area. It can be any key, but a key must be pressed. If you claim not to be pressing any keys, please print out the event.
// wrong:
if(e.getKeyChar()==KeyEvent.VK_ENTER) {
// right:
if(e.getKeyCode()==KeyEvent.VK_ENTER) {You should compare codes with codes, not chars
Lastly you might want to use a document listener instead, so you also get notified when the user pastes something in the text area. -
Thinkpad keyboard problem - some keys generate multiple keys when pressed
thinkpad keyboard problem - some keys generate multiple keys when pressed
For example, "t" generates "tr", "y" generates "yu", "backspace" generates "backspace" plus "IBM access connections", "m" generates "mn" and "n" generates "mn". Not all keys are wrong.
For what it's worth, the odd behaviour started shortly after a trip to Miami in which I had a meeting at a cafe in which we were undercover but it was pouring cats and dogs - it was like having a meeting in a sauna - so I am wondering if the high humidity could have caused the behaviour.
I tried replacing the keyboard but the new keyboard has the same problem.
The machine in question is a Thinkpad T23 running Windows XP Pro
Any help would be appreciated as I am now in Los Angeles using a borrowed Mac! :-)i have something along the lines of the same problem.
http://bbs.archlinux.org/viewtopic.php?id=56777
my conclusion is something in the last system update screwed it up.
Maybe you are looking for
-
Adobe Photoshop Elements 10 crashes on startup
I just purchased Photoshop Elements, and the first time I went to use it, it immediately crashes when I click "edit" to actually enter photoshop. I was able to intall everything, and registered the serial number just fine. But now it crashes every ti
-
When i open iTunes 11.0.1 everything is fine, but when i connect any iDevice to it it completely freezes, without so much as a warning or an error message. I tried different cables, devices and reset and restarted everything. Anyone else experiencing
-
Is there a script for CS5 to export a multi-page InDesign Document to single page InDesign documents
Hello, I am having trouble finding a script or utility that would allow me to export each page of an InDesign CS5 document as multiple single page InDesign documents. I have found one script that does this for CS3, but nothing for CS5. Thank you for
-
Hi I am working on Dispute Management area. My requirement is to get all Dispute case attributes from SCMG_T_CASE_ATTR and UDMCASEATTR00 tables in ECC. I found two BI content extractors 0CSM_CASE_ATTR and 0DPM_DCAS_ATTR. These are delta enabled. Issu
-
Error 150:30 when I start my CS4. What do I do?
I reinstalled my old MacOS to get rid of Maverick. Now I can't use my CS4 programs. What do I do to be able to use my CS4 again?