[libhandy] keypad: Fix symbol condition in entry input filter
- From: Guido Günther <guidog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy] keypad: Fix symbol condition in entry input filter
- Date: Thu, 29 Oct 2020 08:56:09 +0000 (UTC)
commit 7be6796eba43b2f6de70c36da992580c81c6744d
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Thu Oct 29 02:44:20 2020 +0500
keypad: Fix symbol condition in entry input filter
We allow to type *, # and + only when symbols are not visible. That's the
opposite of what we want.
src/hdy-keypad.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/hdy-keypad.c b/src/hdy-keypad.c
index 1714d9a8..1246f730 100644
--- a/src/hdy-keypad.c
+++ b/src/hdy-keypad.c
@@ -114,7 +114,7 @@ insert_text_cb (HdyKeypad *self,
if (g_ascii_isdigit (*text))
return;
- if (!priv->symbols_visible && strchr ("#*+", *text))
+ if (priv->symbols_visible && strchr ("#*+", *text))
return;
g_signal_stop_emission_by_name (editable, "insert-text");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]