summaryrefslogtreecommitdiff
path: root/rc/tools/python
diff options
context:
space:
mode:
authorTim Allen <screwtape@froup.com>2021-04-30 14:48:37 +1000
committerTim Allen <screwtape@froup.com>2021-04-30 14:48:37 +1000
commitf78adeda498fb9eb58b9ce334156f8f3606806c3 (patch)
tree24f15075f47239de5c8cafdb4385db5c11ae926b /rc/tools/python
parent3b147bca0aee95a3cf1870921a48c841c4f130ac (diff)
src: Fix mouse modifier support in the ncurses UI.
For historical reasons, mouse events represent keyboard modifiers as a bitfield, but keyboard events represent modifiers as a bitfield-plus-one. For example, a mouse event with an Alt modifier will use the value 4, but a keyboard event will use the value 5. Previously, I refactored the parse_mask() helper to do the subtraction itself, instead of requiring the caller to do it. This made keyboard-event decoding much cleaner, but I didn't realise it broke mouse-event decoding. Now the subtraction is done only for keyboard events. Fixes #4176.
Diffstat (limited to 'rc/tools/python')
0 files changed, 0 insertions, 0 deletions