9#include <Wt/WApplication.h>
11#include <Wt/WPushButton.h>
18 impl_ = setNewImplementation<WTable>();
20 impl_->resize(13*30, WLength::Auto);
22 for (
unsigned int i = 0; i < 26; ++i) {
23 std::string c(1,
'A' + i);
24 auto character =
impl_->elementAt(i / 13, i % 13)->addNew<WPushButton>(c);
26 character->resize(WLength(30), WLength::Auto);
28 character->clicked().connect
31 connections_.push_back(WApplication::instance()->globalKeyPressed().connect
39 connection.disconnect();
53 if(e.key() ==
static_cast<Key
>(b->text().toUTF8()[0]))
60 letterButton->enable();