{"id":3144,"date":"2020-03-25T03:34:17","date_gmt":"2020-03-25T03:34:17","guid":{"rendered":"https:\/\/raspberry-projects.com\/pi\/?p=3144"},"modified":"2020-03-25T09:15:34","modified_gmt":"2020-03-25T09:15:34","slug":"matchbox-touchscreen-keyboard","status":"publish","type":"post","link":"https:\/\/raspberry-projects.com\/pi\/pi-operating-systems\/raspbian\/keyboards\/matchbox-touchscreen-keyboard","title":{"rendered":"Matchbox Touchscreen Keyboard"},"content":{"rendered":"\n<p>So, on screen keyboards seem to be particularly non perfect.  The most popular seems to be matchbox-keyboard, but it looks pretty dated and doesn&#8217;t seem to have been updated in a long time.  We had a go using matchbox with our application but ended up dumping it because it wouldn&#8217;t sit on top our our full screen application and also looked too basic.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">First update all packages<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt upgrade<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Install matchbox-keyboard<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install matchbox-keyboard<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Customising Layout<\/h4>\n\n\n\n<p>You can customise which keys are shown by creating your own xml file.  The default layouts are located at: \/usr\/share\/matchbox-keyboard<\/p>\n\n\n\n<p><a href=\"https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?t=122020\">https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?t=122020<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Showing From C Code<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>\tpopen(\"matchbox-keyboard\", \"r\");<\/code><\/pre>\n\n\n\n<p>Issue with this was that our application uses gtk_window_fullscreen(), which means the keyboard is shown behind it.  There is a way to have matchbox-keyboard appear withing a gtk application but its non trivial and we decided it just didn&#8217;t look good enough as a keyboard anyway for our needs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, on screen keyboards seem to be particularly non perfect. The most popular seems to be matchbox-keyboard, but it looks pretty dated and doesn&#8217;t seem to have been updated in a long time. We had a go using matchbox with our application but ended up dumping it because it wouldn&#8217;t sit on top our our [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[156],"tags":[],"class_list":["post-3144","post","type-post","status-publish","format-standard","hentry","category-keyboards"],"_links":{"self":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/3144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/comments?post=3144"}],"version-history":[{"count":6,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/3144\/revisions"}],"predecessor-version":[{"id":3151,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/3144\/revisions\/3151"}],"wp:attachment":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/media?parent=3144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/categories?post=3144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/tags?post=3144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}