Hi,
I just found out that the keyname for space bar is spelled Space or space depending on if it is a key up or down. Can anyone confirm this on a non-Linux OS?
cheersio, P
On 30.04.19 15:49, Peter P. wrote:
Hi,
I just found out that the keyname for space bar is spelled Space or space depending on if it is a key up or down. Can anyone confirm this on a non-Linux OS?
on windows you always get "Space". afaict, this is related to the other issue (KeyRelease returning 0 for numbers on linux)
hi pp,
on osX (pd 0.49-1) you get
keyname | | 1 Space
keyname | | 0 Space
liebe grüße marco
Am 30.04.19 um 15:49 schrieb Peter P.:
Hi,
I just found out that the keyname for space bar is spelled Space or space depending on if it is a key up or down. Can anyone confirm this on a non-Linux OS?
cheersio, P
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
hi pp,
on osX (pd 0.49-1) you get
keyname | | 1 Space
keyname | | 0 Space
liebe grüße
Thanks Marco,
IOhannes, do you think this is Linux specific then?
Prost, Peter
On 5/4/19 1:48 AM, Peter P. wrote:
IOhannes, do you think this is Linux specific then?
TL;DR https://github.com/pure-data/pure-data/pull/619
longer version:
yes and no.
the problem being that tcl/tk reports the keys with the names as reported by the underlying windowing system, and these vary widely between the OSs.
to complicate things, on X-windows (in your case: "linux"), the key-release events lack unicode representations (that is: the plus-key is reported as "plus" instead of "+"), which accounts for all the problems.
in the case of space-bar the keydown is reported with a short-name " " (and a full name "space"), which is translated to ASCII 32 (ingoring the full name) which in turn is translated to "Space" (by Pd). otoh, the keyup is reported only with the full name "space" (by the windowing system), which is not translated to ASCII (because the full name is a word rather than a chraracter) and reported literally by Pd (as "space").
the PR imentioned above hopefully fixes most of these problems (by
introducing a caching mechanism in pd-gui).
to apply the PR (without checking it out), it's sufficient to replace
the tcl/pd_bindings.tcl
from your local installation of Pd with the
one from the PR.
fgmards IOhannes