enter in textarea handled

This commit is contained in:
2020-03-19 21:28:43 +01:00
parent 417ac55fda
commit 6438cf52d1
2 changed files with 10 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ class View:
patch(container, self.vdom)
# this does not work on parent div, so attaching to document here
document.addEventListener("keyup", msg(KeyboardPress))
document.addEventListener("keydown", msg(KeyboardPress))
def view(self, model, data_change):
self.model = model