wilas / vbkick

Tool for building and maintaining VirtualBox VMs described as a code in a single definition file.
Other
8 stars 5 forks source link

Add support for fairly arbitrary meta-key combinations to convert_2_scancode.py, e.g. <AltTab>, <CtrlAltn>, etc., up to 4 or 5 keys. #37

Open cniswander opened 10 years ago

cniswander commented 10 years ago

(This is one of multiple issues that describe functionality I've implemented offline that I'd like to bring into the official github repository.)

I have implemented this offline and I am enjoying it. :-)

As free bonus, represent depress+release a meta key. e.g. <Win> to depress and release the Windows key.

Note that <Ctrlt> and <CtrlT> are two different things: the second engages the shift key. This is consistent with the existing codebase's conventions and functionality.

I find this notation convenient because it is terse (short to type). A logical opposite position is that some people may find <Ctrl-t> or <Ctrl+t> or <Ctrl t> more readable. Of those three alternatives I personally find <Ctrl t> least obnoxious, because at present it is less ambiguous (literal spaces are somewhat discriminated against by the existing vbkick codebase, a fact that is itself obnoxious internal technical crud) :-) Also, using space as a permitted separator in meta-key expressions is less cluttered in visual appearance than - or + would be.

Nonetheless, my existing offline implementation doesn't support any of those non-interpreted separators, (+ or - or space).

wilas commented 10 years ago

Very nice :) Feel free to create a pull request.