mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-26 06:28:35 +01:00
don't type in hidden text fields
This commit is contained in:
parent
f1702ee5b2
commit
16c0424f65
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ namespace MLEM.Ui.Elements {
|
|||
|
||||
if (WindowExtensions.SupportsTextInput()) {
|
||||
this.OnTextInput += (element, key, character) => {
|
||||
if (!this.IsSelected)
|
||||
if (!this.IsSelected || this.IsHidden)
|
||||
return;
|
||||
if (key == Keys.Back) {
|
||||
if (this.CaretPos > 0) {
|
||||
|
|
Loading…
Reference in a new issue