From ba493bdb74fa244dfaa5348d1d8acd75019228bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Tue, 30 May 2017 15:40:25 +0200 Subject: [PATCH] [apps/calculations] Add 'ans' when the text field starts with '^2' Change-Id: I8cc8a5455f934e875ef4ba1e8388d16210630107 --- apps/calculation/text_field.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/calculation/text_field.cpp b/apps/calculation/text_field.cpp index 497e6c969..4ad194802 100644 --- a/apps/calculation/text_field.cpp +++ b/apps/calculation/text_field.cpp @@ -22,6 +22,7 @@ bool TextField::handleEvent(Ion::Events::Event event) { event == Ion::Events::Plus || event == Ion::Events::Minus || event == Ion::Events::Power || + event == Ion::Events::Square || event == Ion::Events::Division)) { if (!isEditing()) { setEditing(true);