Skip to content
Snippets Groups Projects
Commit 0b931e40 authored by Nico's avatar Nico
Browse files

Support sending messages with numpad enter

Fixes #92
parent 949eb312
No related branches found
No related tags found
1 merge request!99Support sending messages with numpad enter
Pipeline #5957 passed
......@@ -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) == \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment