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]: Number 9 is handled in ribbon textbox/richtextbox. #697

Closed
pgaraneta opened this issue Apr 13, 2022 · 6 comments
Closed

[Bug]: Number 9 is handled in ribbon textbox/richtextbox. #697

pgaraneta opened this issue Apr 13, 2022 · 6 comments
Labels
area:ribbon All issues to do with the ribbon. bug Something isn't working completed This issue has been completed. regression Something was working in a previous release, but isn't working now.
Milestone

Comments

@pgaraneta
Copy link

pgaraneta commented Apr 13, 2022

I can type numbers 123456780 in the ribbon textbox/richtextbox, however, 9 is handled.

I tried using other keyboards as well as on screen keyboard and typing 9 into the ribbon textbox/richtextbox, 9 is still handled. If I type number 9 into a normal textbox in a form in the same app, there is no problem. Notepad, just for verification, I can type 9.

image

@pgaraneta pgaraneta added the bug Something isn't working label Apr 13, 2022
@giduac
Copy link
Contributor

giduac commented Apr 14, 2022

Hi,

I had a look at this and found that next to Textbox and RichTextBox other controls have this:

KryptonRibbonGroupDomainUpDown
KryptonRibbonGroupNumericUpDown
KryptonRibbonGroupComboBox (DropdownStyle = DropDown)
KryptonRibbonGroupMaskedTextBox

As soon as you enter the number 9 the cursor/focus is "removed" from the control.

@pgaraneta
Copy link
Author

Yes, after hitting 9, ribbon textbox/richtextbox indeed, loses focus. Tested on an MDI with at least a child form opened.

@Smurf-IV
Copy link
Member

Smurf-IV commented Apr 16, 2022

Might be something that has been "Introduced" but using an older toolkit version; 9 works:
image
When I have a building environment I'll test with the latest....

@Smurf-IV Smurf-IV added the under investigation This bug/issue is currently under investigation. label Apr 16, 2022
@Smurf-IV Smurf-IV self-assigned this Apr 17, 2022
@Smurf-IV Smurf-IV added area:ribbon All issues to do with the ribbon. regression Something was working in a previous release, but isn't working now. labels Apr 17, 2022
@Smurf-IV
Copy link
Member

I am able to reproduce this in the latest "Example" as shown above.
It appears that the base class for RichText is okay:
image

I continue to investigate....

@Smurf-IV
Copy link
Member

Found the problem...

  • Even tho the Keys type is a flags enum you cannot check for Tab and other key types at the same time!
  • Tab = 0x09
  • NumPad9 or D9 = 0x69
  • if (keyData.HasFlag(Keys.Tab)) will be true when it should not be !

@Smurf-IV
Copy link
Member

Note: This was "Broken" on the 2021-12-28 !

@Smurf-IV Smurf-IV removed their assignment Apr 17, 2022
@Smurf-IV Smurf-IV added completed This issue has been completed. and removed under investigation This bug/issue is currently under investigation. labels Apr 17, 2022
@PWagner1 PWagner1 added this to the June 2022 milestone May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:ribbon All issues to do with the ribbon. bug Something isn't working completed This issue has been completed. regression Something was working in a previous release, but isn't working now.
Projects
None yet
Development

No branches or pull requests

4 participants