patch-2.2.7 linux/drivers/char/dn_keyb.c

Next file: linux/drivers/char/keyboard.c
Previous file: linux/drivers/char/bttv.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.6/linux/drivers/char/dn_keyb.c linux/drivers/char/dn_keyb.c
@@ -414,9 +414,9 @@
 	}
 	else if((scancode & (~BREAK_FLAG)) == DNKEY_CAPS) {
     	/* printk("handle_scancode: %02x\n",DNKEY_CAPS); */
-		handle_scancode(DNKEY_CAPS);
+		handle_scancode(DNKEY_CAPS, 1);
 		/*    printk("handle_scancode: %02x\n",BREAK_FLAG | DNKEY_CAPS); */
-		handle_scancode(BREAK_FLAG | DNKEY_CAPS);
+		handle_scancode(DNKEY_CAPS, 0);
 	}
 	else if( (scancode == DNKEY_REPEAT) && (prev_scancode < 0x7e) &&
    			!(prev_scancode==DNKEY_CTRL || prev_scancode==DNKEY_LSHIFT ||
@@ -424,13 +424,13 @@
        	  	prev_scancode==DNKEY_LALT || prev_scancode==DNKEY_RALT)) {
         		if(jiffies-lastkeypress > DNKEY_REPEAT_DELAY) {
 			/*    	printk("handle_scancode: %02x\n",prev_scancode); */
-           			handle_scancode(prev_scancode);
+           			handle_scancode(prev_scancode, 1);
 			  	}
 	   			lastscancode=prev_scancode;
   			}
   	else {
 	/*    	printk("handle_scancode: %02x\n",scancode);  */
-   			handle_scancode(scancode);
+   			handle_scancode(scancode & ~BREAK_FLAG, !(scancode & BREAK_FLAG));
    			lastkeypress=jiffies;
   	}
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)