<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Getting keyboard input]]></title><description><![CDATA[<p dir="auto">I’ve started working on a set of modules where a user can chat with the mirror via keybaord input and get responses from some kind of neural network ai.  I’m running into a brick wall on getting keyboard input. Right now I’m using an inputbox but keypresses don’t seem to show up in it. I know a little python but webdev and javascript is new to me. Here is the very basic code I have so far and thanks for the help!</p>
<pre><code>Module.register("keyboard", {
    getDom: function() {
        var wrapper = document.createElement("div");
        var form = document.createElement("form");
        var inputbox = document.createElement("input");
        inputbox.setAttribute("type", "text");
        form.appendChild(inputbox);
        wrapper.appendChild(form);
        Log.info(this.name + " worked.");
        return wrapper;
    }
});
</code></pre>
]]></description><link>https://forum.magicmirror.builders/topic/440/getting-keyboard-input</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Jul 2026 14:42:17 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/440.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 01 Aug 2016 22:19:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Getting keyboard input on Tue, 06 Feb 2018 12:48:08 GMT]]></title><description><![CDATA[<p dir="auto">Did you find a solution? I will make a new post because I have the same issue.</p>
]]></description><link>https://forum.magicmirror.builders/post/35313</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/35313</guid><dc:creator><![CDATA[hardcola]]></dc:creator><pubDate>Tue, 06 Feb 2018 12:48:08 GMT</pubDate></item></channel></rss>