1
0
Fork 0
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:
Ellpeck 2019-12-04 01:32:00 +01:00
parent f1702ee5b2
commit 16c0424f65

View file

@ -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) {