I have added fairly robust support for the Dvorak keyboard layout to LustyJuggler by refactoring the LustyJuggler and NameBar Ruby classes. In particular, the refactoring of the LustyJuggler class makes it extensible by subclassing, which was difficult previously due to use of class variables (which are affected in parent classes upon reassignment by subclasses) and hard-coding of mapping and unmappings.
This series of commits will add support for Dvorak and lays the way for further extension of other keyboard layouts through subclassing the LustyJuggler class.
I have added fairly robust support for the Dvorak keyboard layout to LustyJuggler by refactoring the LustyJuggler and NameBar Ruby classes. In particular, the refactoring of the LustyJuggler class makes it extensible by subclassing, which was difficult previously due to use of class variables (which are affected in parent classes upon reassignment by subclasses) and hard-coding of mapping and unmappings.
This series of commits will add support for Dvorak and lays the way for further extension of other keyboard layouts through subclassing the LustyJuggler class.