Recent

Author Topic: Accelerator causes beep  (Read 5626 times)

sfeinst

  • Full Member
  • ***
  • Posts: 230
Accelerator causes beep
« on: February 18, 2010, 08:20:46 pm »
I am running on Windows XP.

I placed a TLabeledEdit and set the accelerator of the label to Alt-S.  When I run the app and press Alt-S, my edit control gets the focus (as it should), but the system also beeps.  The same is occuring on a TCheckBox.

Any ideas on what is causing the beep (I'm guessing the control that has focus does not like the key combination) andhow do I turn it off?

sfeinst

  • Full Member
  • ***
  • Posts: 230
[Solved] Re: Accelerator causes beep
« Reply #1 on: February 24, 2010, 04:29:53 pm »
Turns out, all buttons (even in the editor were beeping).  I had not noticed it before because I don't always hit enter on dialogs.  Turing off the system default beep sound removed the beeping.

Other windows apps did not cause the beep, just Lazarus and apps built with Lazarus, so the LCL must treat hitting the enter key and accelerator keys on buttons as default.

So not sure if that is the correct solution, but it worked.

 

TinyPortal © 2005-2018