MCPcopy Create free account
hub / github.com/pyload/pyload / onChar

Method onChar

module/cli/ManageFiles.py:42–51  ·  view source on GitHub ↗
(self, char)

Source from the content-addressed store, hash-verified

40 self.time = 0
41
42 def onChar(self, char):
43 if char in ("m", "d", "r"):
44 self.mode = char
45 self.setInput()
46 elif char == "p":
47 self.pos = max(0, self.pos - 5)
48 self.backspace()
49 elif char == "n":
50 self.pos += 5
51 self.backspace()
52
53 def onBackSpace(self):
54 if not self.input and self.mode:

Callers

nothing calls this directly

Calls 2

backspaceMethod · 0.80
setInputMethod · 0.45

Tested by

no test coverage detected