Hallo, Frank Barknecht hat gesagt: // Frank Barknecht wrote:
SourceForge.net hat gesagt: // SourceForge.net wrote:
The [keyname] doesn't handle correctly at least the following keys:
- space bar
- enter
- escape
It doesn't correctly return the key name on the right outlet.
I believe everything is right on Pd's side, but cannot test ATM, so could you do the following test: You can make "symbol <space>" where <space> is an actual " " with [makefilename %c] and sending the ASCII-Number for space (32 IIRC). If you use this symbol in a [select DUMMY] object's right inlet to set the selected symbol, then you should be able to properly [select] on a <space>-symbol coming in from [keyname]. Same should be valid for other whitespace or some non-printing characters.
Okay, I could test this now: Backspace, Esc and Space work with that patch: [bang( [key] \ / [f ] | [keyname] [makefilename %c] | | [select dummy] | [bng]
First press key you want to test, then click the top bang and press key again: [select] will fire correctly on <Space>, <Esc> and <Backspace>. However <Enter> doesn't work.
Note that "symbol <mystery_char_for_space>" is something different from "symbol " and also different from "symbol 32" or "symbol SPACE". I believe, the way keyname handles this ATM is okay.
Ciao