Menu

Testing for Shift key - even if Caps Lock on.

David Wall
2021-12-09
2021-12-14
  • David Wall

    David Wall - 2021-12-09

    I have an internal menu system within a program that has numerous functions controlled by the keyboard or mouse. ie: I can press the letter B to do one thing or the letter b to do another.

    This causes a problem IF the CapsLock key is ON - whereby the key pressed continues to do whatever function is attached to it - the 'tactile' brain function of pressing the Shift Key + Another key is shot down.

    Is there any way of detecting that the CapsLock key is already pressed and thereby being able to reverse the keystroke function. ie: Letter B now takes the function of letter b & vice versa.

     
  • David Wall

    David Wall - 2021-12-14

    I found a bit of C code on the net & added it to a C routine I use for keystroke/mouse input.

     

Anonymous
Anonymous

Add attachments
Cancel