[PD] Keyboard shortcuts for "nudge", "done editing"

Marvin Humphrey marvin at rectangular.com
Sun Sep 25 16:11:32 CEST 2011


On Sun, Sep 25, 2011 at 05:16:23PM +1000, Richie Cyngler wrote:
> If you drag select an object or group of objects you can use the "nudge"
> functionality with cursor keys, you can also hold shift for block moves. So
> that functionality is already there.

Thanks, Richie.  It seems that there is a bug affecting Pd on Mac OS X (at
least 10.6), and the cursor keys do not function properly.

    http://sourceforge.net/tracker/index.php?func=detail&aid=3187517&group_id=55736&atid=478070

The bug was reported for 0.43.0-extended-20110119, but is affecting my
up-to-date clone of
<git://pure-data.git.sourceforge.net/gitroot/pure-data/pure-data>.

When I drag-select an object and then press any of the cursor keys, nothing
happens, regardless of whether "shift" is depressed.

Furthermore, when editing text inside either an object or a message, pressing
any of the cursor keys produces strange effects: 

  * When appending to existing text, the cursor position does not
    move, but an invisible character is inserted to the right of the cursor.
  * When either the box is empty, or all existing text is selected (so the
    next character will replace it) pressing any cursor key inserts a box
    character.

According to the bug report linked above, it seems that "the arrow keys work
fine" on the other platforms.

Perhaps it's time to take this to the dev list, as I'm now digging in the
source code and it looks like src/g_editor.c and the "canvas_key" function are
the place to start.

> In regards to a key, like enter, to "complete" an object I think that's a
> great idea. I was just thinking the same thing actually.

OK, if this is new functionality, I think it should be something other than
<ENTER>.  The problem with <ENTER> is that it is sometimes necessary to insert
a newline when editing, especially with comments, and the same key should be
used to release focus from any text entry situation.  My preference would be
for <ESC>.

Cheers,

Marvin Humphrey




More information about the Pd-list mailing list