fixed regression - buttons not sending commands

pull/111/merge
Ondřej Hruška 7 years ago
parent 5f6566a6fd
commit 979f956e7e
  1. 2
      html_orig/js/app.js
  2. 2
      html_orig/jssrc/term.js

@ -2238,7 +2238,7 @@ var Input = (function() {
_initKeys(); _initKeys();
// Button presses // Button presses
qsa('#buttons button').forEach(function(s) { qsa('#action-buttons button').forEach(function(s) {
s.addEventListener('click', function() { s.addEventListener('click', function() {
sendBtnMsg(+this.dataset['n']); sendBtnMsg(+this.dataset['n']);
}); });

@ -638,7 +638,7 @@ var Input = (function() {
_initKeys(); _initKeys();
// Button presses // Button presses
qsa('#buttons button').forEach(function(s) { qsa('#action-buttons button').forEach(function(s) {
s.addEventListener('click', function() { s.addEventListener('click', function() {
sendBtnMsg(+this.dataset['n']); sendBtnMsg(+this.dataset['n']);
}); });

Loading…
Cancel
Save