aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/Interface.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Interface.cs')
-rw-r--r--src/Interface.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Interface.cs b/src/Interface.cs
index 75310918..86f30088 100644
--- a/src/Interface.cs
+++ b/src/Interface.cs
@@ -663,6 +663,14 @@ namespace Crow
return true;
}
+ public bool ProcessKeyPress(char Key){
+ if (_focusedWidget == null)
+ return false;
+ KeyPressEventArgs e = new KeyPressEventArgs(Key);
+ _focusedWidget.onKeyPress (this, e);
+ return true;
+ }
+
volatile bool mouseRepeatOn;
volatile int mouseRepeatCount;
Thread mouseRepeatThread;