diff options
| author | jp <jp_bruyere@hotmail.com> | 2016-03-15 14:10:54 +0100 |
|---|---|---|
| committer | jp <jp_bruyere@hotmail.com> | 2016-03-15 14:10:54 +0100 |
| commit | 7d84e81ebdc0bf89b5aa89cef2375c4acae7b37e (patch) | |
| tree | 3212e1f2672b5864483f77f716fd831d7bd0e7cc /src/Interface.cs | |
| parent | 97e0683c77461e7f13ab40ff9bc6f8a56c7a9d7e (diff) | |
keypress event
Diffstat (limited to 'src/Interface.cs')
| -rw-r--r-- | src/Interface.cs | 8 |
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; |