Send message on enter from numblock
This commit is contained in:
parent
31bbafa2c8
commit
b09a056a13
|
@ -72,7 +72,7 @@ public class View : Box {
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool on_text_input_key_press(EventKey event) {
|
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) {
|
if ((event.state & ModifierType.SHIFT_MASK) > 0) {
|
||||||
text_input.buffer.insert_at_cursor("\n", 1);
|
text_input.buffer.insert_at_cursor("\n", 1);
|
||||||
} else if (text_input.buffer.text != ""){
|
} else if (text_input.buffer.text != ""){
|
||||||
|
|
Loading…
Reference in a new issue