OSDN Git Service

Normalise gesture identifiers in the process of binding them so that they match other...
authorJames Teh <jamie@jantrid.net>
Wed, 6 Oct 2010 08:04:01 +0000 (18:04 +1000)
committerJames Teh <jamie@jantrid.net>
Wed, 6 Oct 2010 08:04:01 +0000 (18:04 +1000)
commit6192e5237c9e49793fc312199269978bbd4f90c9
treef2150488bfb34def929d78b8202b00ec1d7167c7
parent9c5b9d7593da33841b40a2dc8ee4d5e55a658d89
Normalise gesture identifiers in the process of binding them so that they match other identifiers for the same gesture.
This is necessary because the order of the modifiers in a keyboard gesture (e.g. control+shift+alt) doesn't matter as far as the user is concerned, but NVDA needs them to be in a determinate order so they match other identifiers.
Currently, this is implemented in inputCore.normalizeGestureIdentifier(). This also converts the string to lower case, which used ot be done in ScriptableObject.bindGesture().
This may need to be made specific to the type of gesture in future; e.g. braille gesture identifiers might need different normalisation. However, this can be done later if necessary.
source/baseObject.py
source/inputCore.py