From: "Chia" Newsgroups: comp.os.msdos.djgpp Subject: Re: Interesting Allegro Keyboard Phenomenon... Date: Mon, 2 Nov 1998 16:05:27 -0600 Organization: 404 Software Lines: 24 Message-ID: <71la3g$q1t@nnrp4.farm.idt.net> References: NNTP-Posting-Host: max1-40.top.net X-Newsreader: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Do you use a custom keyboard handler? In my programs, ctrl has a tendency to get "stuck" if it is used when my own keyboard handler is active. Again, pressing ctrl once "unlocks" this behaviour. I'm using Allegro's keyboard routines, but I'm using a keyboard callback function. This is the function, but it doesn't have anything to do with the shift key so... i dunno. int jgKeyCallback(int key) { if ((key >> 8) == KEY_INSERT) { // toggle keyboard mode (just a global) (KeyboardMode == insert) ? (KeyboardMode = overwrite) : (KeyboardMode = insert); } return key; }