mirror of
https://github.com/TakeV-Lambda/dino.git
synced 2024-11-28 09:51:09 +00:00
Send message on enter from numblock
This commit is contained in:
parent
31bbafa2c8
commit
b09a056a13
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ public class View : Box {
|
|||
}
|
||||
|
||||
private bool on_text_input_key_press(EventKey event) {
|
||||
if (event.keyval == Key.Return) {
|
||||
if (event.keyval in new uint[]{Key.Return, Key.KP_Enter}) {
|
||||
if ((event.state & ModifierType.SHIFT_MASK) > 0) {
|
||||
text_input.buffer.insert_at_cursor("\n", 1);
|
||||
} else if (text_input.buffer.text != ""){
|
||||
|
|
Loading…
Reference in a new issue