@electerm/electerm-react 1.37.92 → 1.37.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -63,11 +63,16 @@ export function shortcutExtend (Cls) {
63
63
  this.lastTimePressDel = now
64
64
  }
65
65
  const timer = now - this.lastTimePressDel
66
- const count = Math.ceil(timer / 800)
66
+ let count = Math.ceil(timer / 800)
67
+ if (count <= 0) {
68
+ count = 1
69
+ }
67
70
  let char = String.fromCharCode(
68
71
  shiftKey ? 127 : 8
69
72
  )
73
+ console.log('char1', JSON.stringify(char), count)
70
74
  char = new Array(count).fill(char).join('')
75
+ console.log('char', JSON.stringify(char))
71
76
  this.socket.send(
72
77
  char
73
78
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@electerm/electerm-react",
3
- "version": "1.37.92",
3
+ "version": "1.37.93",
4
4
  "description": "react components src for electerm",
5
5
  "main": "./client/components/main/main.jsx",
6
6
  "license": "MIT",