1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-12 09:29:08 +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()) { 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) {