added ctrl+insert for copy to clipboard

box-drawing
Ondřej Hruška 7 years ago
parent 4ee85af4f4
commit 6eac6af319
  1. 7
      js/term_input.js

@ -220,6 +220,9 @@ module.exports = function (conn, screen) {
'Control+Shift+C' () {
screen.copySelectionToClipboard()
},
'Control+Insert' () {
screen.copySelectionToClipboard()
},
// toggle debug mode
'Control+F12' () {
@ -229,7 +232,9 @@ module.exports = function (conn, screen) {
}
// ctrl+[A-Z] sent as simple low ASCII codes
for (let i = 1; i <= 26; i++) keymap[`Control+${String.fromCharCode(0x40 + i)}`] = String.fromCharCode(i)
for (let i = 1; i <= 26; i++) {
keymap[`Control+${String.fromCharCode(0x40 + i)}`] = String.fromCharCode(i)
}
/** Send a literal message */
function sendString (str) {

Loading…
Cancel
Save