Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: KryptonComboBox steals the focus using keydown event to jump between controls with enter key in a form #1400

Open
almendieta opened this issue Apr 13, 2024 · 1 comment
Labels
answered This question has been adequately answered. awaiting feedback A fix for this issue has been implemented, waiting for feedback on the fix. bug Something isn't working

Comments

@almendieta
Copy link

almendieta commented Apr 13, 2024

Describe the bug
KryptonComboBox stoles the focus using keydown event to jumb between controls with enter key in a frm
To Reproduce
Steps to reproduce the behavior:

  1. Create at least 5 kryptontextbox controls, include a kryptoncombobox, a kryptoncheckbox and paste this code in each control keydown event:
    If e.KeyCode = Keys.Enter Then
    e.SuppressKeyPress = True ' Evita el sonido de "ding" cuando se presiona Enter
    Me.SelectNextControl(Me.ActiveControl, True, True, True, True)
    End If

  2. If you try and press enter key, focus finish always in kryptoncombobox.

Expected behavior
Not sure if there is any way to configure this control to avoid this behaviour, so pressing enter key focus jumps between controls based in tabindex property.
Screenshots

Desktop (please complete the following information):

  • OS: Windows 10 64b
  • Version:19042.631
  • Framework/.NET Version: [e.g. 4.8.1]
  • Toolkit Version: 90.24.2.52
@almendieta almendieta added the bug Something isn't working label Apr 13, 2024
@Wagnerp Wagnerp changed the title KryptonComboBox stoles the focus using keydown event to jumb between controls with enter key in a frm [Bug]: KryptonComboBox steals the focus using keydown event to jump between controls with enter key in a form Apr 14, 2024
@lesandrog
Copy link

Hello, I tried to reproduce, but your code worked normally, with version 80.24.3.64.
You can try replacing "Me.SelectNextControl(Me.ActiveControl, True, True, True, True)" with "SendKeys.Send("{TAB}")" or "KryptonTextBox1.Focus()"

@Smurf-IV Smurf-IV added answered This question has been adequately answered. awaiting feedback A fix for this issue has been implemented, waiting for feedback on the fix. labels May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered This question has been adequately answered. awaiting feedback A fix for this issue has been implemented, waiting for feedback on the fix. bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants