[ion] Add a class State in Keyboard

Change-Id: I42b2c892deaedc83a7629d8c8be66cd4e1fbcb5c
This commit is contained in:
Émilie Feral
2017-05-23 10:44:30 +02:00
parent 3d1fc8e5d1
commit f9a1caa8eb
9 changed files with 42 additions and 16 deletions

View File

@@ -39,7 +39,7 @@ AppsContainer::AppsContainer() :
bool AppsContainer::poincareCircuitBreaker(const Poincare::Expression * e) {
Ion::Keyboard::State state = Ion::Keyboard::scan();
return Ion::Keyboard::keyDown(Ion::Keyboard::Key::A6, state);
return state.keyDown(Ion::Keyboard::Key::A6);
}
int AppsContainer::numberOfApps() {