Handle "slow escape" keypress events

Registered by Paul "LeoNerd" Evans on 2015-10-03

circle-fe-term currently cheats its way around the Tickit.pm internals, to hook the 'on_key' method to insert some extra logic around Escape keys. On receipt of an Escape key it draws an "ESC-" indicator, and suppresses emission of that event for now. If another key arrives within a timeout period it applies the Alt- modifier. On a timeout it emits the real Escape key. Either way, it then removes the indicator.

It's impossible currently for an application to handle this in the C library, because it couldn't inject a new key event.

Blueprint information

Status:
Complete
Approver:
Paul "LeoNerd" Evans
Priority:
High
Drafter:
Paul "LeoNerd" Evans
Direction:
Approved
Assignee:
None
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon v0.1
Started by
Paul "LeoNerd" Evans on 2016-01-06
Completed by
Paul "LeoNerd" Evans on 2016-02-10

Related branches

Sprints

Whiteboard

Possible solutions:
 * provide "tentative escape" events
 * provide an API to allow applications to inject new events in as if received from the term - now DONE with tickit_term_emit_key()

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.