MCPcopy Create free account
hub / github.com/TabViewer/tabview / handle_modifier

Method handle_modifier

tabview/tabview.py:738–747  ·  view source on GitHub ↗

Append digits as a key modifier, clear the modifier if not a digit. Args: mod: potential modifier string

(self, mod)

Source from the content-addressed store, hash-verified

736 self.modifier = str()
737
738 def handle_modifier(self, mod):
739 """Append digits as a key modifier, clear the modifier if not
740 a digit.
741
742 Args:
743 mod: potential modifier string
744 """
745 self.modifier += mod
746 if not self.modifier.isdigit():
747 self.modifier = str()
748
749 def resize(self):
750 """Handle terminal resizing"""

Callers 1

handle_keysMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected