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

Improved handling of the input for TextPresenter #12

Closed
wants to merge 4 commits into from
Closed

Improved handling of the input for TextPresenter #12

wants to merge 4 commits into from

Conversation

SuperJMN
Copy link
Contributor

Also, I fixed the problem where pressing the A key doesn't insert any text.
Please, note that I omitted the "this" keyword. This is much discussed, but I have researched to form an opinion on this coding style. Anyone that needs justification, please, contact me.

Thanks :)


var isShortCut = isShortcutKey && isControlPressed;

return !string.IsNullOrEmpty(e.Text) && !IsCharacterDeletionKey(e.Key) && !isShortCut;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we already check for a deletion key in the main hey handler?

@grokys grokys closed this Dec 14, 2014
kekekeks added a commit that referenced this pull request Oct 18, 2018
kekekeks pushed a commit that referenced this pull request Nov 15, 2018
Changed Theme Namespace to avoid conflict
maxkatz6 pushed a commit that referenced this pull request Feb 20, 2023
* Fix attached properties resolution
* Strip out controls that aren't IControl
* Be more strict and check the namespace
* Update packages, throw when class is not partial
* Use internal access modifier explicitly
* Move the attribute to Avalonia.Controls namespace
* Further documentation updates
* Add the badges
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants