Key Sequences

Author: micscoCreated Aug 30, 2011Updated Apr 20, 2018

I'm writing this to start a "high" level discussion about how to implement this.

I'm looking to implement similar functionality to that of GMail. Allowing me to have a global first-press, followed by an action.

IE: I want to be able to press g then h, to go home. However at present this doesn't seem possible with keymaster.

I currently implement something similar by using setScope and having a scope specific for my "go actions", however if I'm already in a scope, and these are intended to be global actions, then it gets difficult to return to the previous scope.

My suggestion is a proposed setTemporaryScope method, whereby it automatically returns to the previous scope after next keypress, or if there is no keypress within a certain time frame (say 1second) then it'll return to the previous scope after time out.

Thoughts?