From d19e303f0d1ecca189d0cd2b9332ad1a689d9516 Mon Sep 17 00:00:00 2001 From: Frank Tackitt Date: Fri, 24 Dec 2021 07:32:07 -0700 Subject: [PATCH] Support the "enter" key from a physical keyboard (#379) * Support the "enter" key from a physical keyboard I often have a usb keyboard dangling from my printer, and got annoyed I couldn't just hit enter from the console. https://docs.gtk.org/gtk3/signal.Entry.activate.html * Fix whitespace for linting --- panels/console.py | 1 + 1 file changed, 1 insertion(+) diff --git a/panels/console.py b/panels/console.py index 180861e6..f1f71a38 100644 --- a/panels/console.py +++ b/panels/console.py @@ -51,6 +51,7 @@ class ConsolePanel(ScreenPanel): entry.set_hexpand(True) entry.set_vexpand(False) entry.connect("focus-in-event", self._show_keyboard) + entry.connect("activate", self._send_command) enter = self._gtk.Button("Send") enter.set_hexpand(False)