// Add a field to display things var field = new photonui.TextAreaField({ placeholder: "Start writing here!", rows: 20 }); photonui.domInsert(field, "demo");
// Create our keyboard manager var kb = new photonui.KeyboardManager(field, {safe: false});
// What to write to our label var keys = []; var printKeys = function() { field.value = ""; for (var key in keys) field.value += key + " " + keys[key] + "\n"; };