From ff93fbb3718341afe32efdb4fbf2776f7e643ea9 Mon Sep 17 00:00:00 2001 From: Alexander Zhirov Date: Fri, 9 Jan 2026 21:48:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B8=D0=B2=D0=B5=D0=B4=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BA=20=D0=BE=D0=B1=D1=89=D0=B5=D0=BC?= =?UTF-8?q?=D1=83=20=D1=81=D1=82=D0=B8=D0=BB=D1=8E.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/ncui/widgets/button.d | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/ncui/widgets/button.d b/source/ncui/widgets/button.d index c937b7f..6d33bc6 100644 --- a/source/ncui/widgets/button.d +++ b/source/ncui/widgets/button.d @@ -50,12 +50,16 @@ public: override ScreenAction handle(ScreenContext context, KeyEvent event) { if (!_enabled) + { return ScreenAction.none(); + } if (isEnter(event) || isSpace(event)) { if (_onClick !is null) + { return _onClick(); + } return ScreenAction.none(); }