Mercurial > hg
comparison .hgsigs @ 43460:be0f77fd274d stable
py3: fix handling of ctrl keys in crecord (issue6213)
The "keypressed" value in handlekeypressed() is a key name obtained by
curses's getkey(); this can be a multibyte string for special keys
like CTRL keys. Calling curses.unctrl() with such a value fails on
Python 3 with a TypeError as described in issue6213. (On Python 2, this
does not crash, but I'm not sure the result is correct, though it does
no matter here.)
So instead of calling unctrl(), we compare "keypressed" with the
expected "^L" obtained by curses.ascii.ctrl("L").
author | Denis Laxalde <denis.laxalde@logilab.fr> |
---|---|
date | Wed, 06 Nov 2019 16:54:34 +0100 |
parents | 93aeebc90ff9 |
children | 743c69b39332 |
comparison
equal
deleted
inserted
replaced
43459:7cc913396f8c | 43460:be0f77fd274d |
---|