Browse Source

Solved little bug in dead key repetition

Signed-off-by: fuchicar <rafita.fernandez@gmail.com>
fuchicar 7 years ago
parent
commit
7401cf3a51
1 changed files with 2 additions and 1 deletions
  1. 2 1
      sys/src/9/386/i8042.c

+ 2 - 1
sys/src/9/386/i8042.c

@@ -302,6 +302,7 @@ processdeadkey(Rune c){
 		// We pressed a dead key before this
 		if (k->key == c){
 			// Press two times the same DeadKey = print the dead key
+			k=nil;
 			return c;
 		}
 		for (int i=0; i<MaxDKResults && k->baseKey[i]!=No; i++){
@@ -549,7 +550,7 @@ i8042intr(Ureg* u, void* v)
 	/*
 	 * Process dead keys
 	 */
-	if (hasdeadkeys()){
+	if (hasdeadkeys() && !keyup){
 		c = processdeadkey(c);
 	}