Remove Caps Lock checking from shift. We probably don't want to check Caps in that method. For control key combos, they should be unaffected by Caps. For text capitalization, we need to xor the state of Shift and Caps (rather than or them). Removing this check also makes the shift function consistent with query_shift.
Implement the query_ prefixed methods in terms of the static methods.
Strip the query_ prefix from non-static methods that query the current keyboard state.
Closes #1151
Mark
KeyModifier
methods asstatic
.Remove Caps Lock checking from
shift
. We probably don't want to checkCaps
in that method. For control key combos, they should be unaffected byCaps
. For text capitalization, we need toxor
the state ofShift
andCaps
(rather thanor
them). Removing this check also makes theshift
function consistent withquery_shift
.Implement the
query_
prefixed methods in terms of thestatic
methods.Strip the
query_
prefix from non-static methods that query the current keyboard state.