mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-23 05:08:34 +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()) {
|
if (WindowExtensions.SupportsTextInput()) {
|
||||||
this.OnTextInput += (element, key, character) => {
|
this.OnTextInput += (element, key, character) => {
|
||||||
if (!this.IsSelected)
|
if (!this.IsSelected || this.IsHidden)
|
||||||
return;
|
return;
|
||||||
if (key == Keys.Back) {
|
if (key == Keys.Back) {
|
||||||
if (this.CaretPos > 0) {
|
if (this.CaretPos > 0) {
|
||||||
|
|
Loading…
Reference in a new issue