MCPcopy Create free account
hub / github.com/chrisduerr/dotfiles / cb_key_pressed

Function cb_key_pressed

files/weechat/python/autoload/vimode.py:1372–1386  ·  view source on GitHub ↗

Detect potential Esc presses. Alt and Esc are detected as the same key in most terminals. The difference is that Alt signal is sent just before the other pressed key's signal. We therefore use a timeout (50ms) to detect whether Alt or Esc was pressed.

(data, signal, signal_data)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

normalize_keysFunction · 0.70

Tested by

no test coverage detected