Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why Shortcut without pressing the alt key

Tags:

delphi

I have a simple application 2 Labels, 2 Edits and a button.

enter image description here

if i press alt+1 or alt+2 the focus jumps to Edit1 or edit2.

if the button1 has the focus and i press 1 (without alt) it jump to edit1.

that make some problems. it is possible to disable that. it was not so in borland c++ 6.0.

thanks

like image 273
H.K Avatar asked Jan 27 '23 03:01

H.K


1 Answers

This behaviour is by design. When a control which does not accept input has the focus, key presses are interpreted as accelerator key presses.

like image 62
David Heffernan Avatar answered Feb 01 '23 23:02

David Heffernan