From 09425067dcee0b1a6fbf021fde46f035cc46e6d3 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 3 Jun 2014 22:19:00 +0200 Subject: [PATCH] [DEV] remove to many request of focus --- sources/appl/Gui/TextViewer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/appl/Gui/TextViewer.cpp b/sources/appl/Gui/TextViewer.cpp index ffbe683..b665318 100644 --- a/sources/appl/Gui/TextViewer.cpp +++ b/sources/appl/Gui/TextViewer.cpp @@ -424,7 +424,8 @@ bool appl::TextViewer::onEventEntry(const ewol::event::Entry& _event) { } bool appl::TextViewer::onEventInput(const ewol::event::Input& _event) { - if (_event.getId() != 0) { + if ( _event.getId() != 0 + && _event.getStatus() == ewol::key::statusDown) { keepFocus(); } //tic();