Commit 0b931e40 authored by Nico's avatar Nico
Browse files

Support sending messages with numpad enter

Fixes #92
parent 949eb312
Pipeline #5957 passed with stage
in 3 minutes and 34 seconds
......@@ -267,7 +267,7 @@ class PrivateChatPresenter:
def _on_chat_input_activate(self, widget, event):
# Return is pressed
if Gdk.keyval_name(event.keyval) != 'Return':
if Gdk.keyval_name(event.keyval) not in ('Return', 'KP_Enter'):
return False
# Shift is not pressed
if (event.state & Gdk.ModifierType.SHIFT_MASK) == \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment