On Wed, 9 Jan 2019 at 20:14, R. Timothy Edwards <rtedwar...@gmail.com>
wrote:

> Hello Svenn,
>
>  > for some reason I cannot get the keypad to work with xcircuit.
>  > How can I bind KP_1 to KP_9 to their original functionality by
>  > xcircuit::keybind function?
>  >
>  > --
>  > Svenn
>
> Some of this may have to do with the "Num-Lock" on the keyboard.
> More of it has to do with key names accepted by the Tcl/Tk "bind"
> command.
>
>
I am using a Microsoft Sculpt keyboard with a separate numpad.
When using xcircuit I place the numpad to the left of the keyboard so I can
operate the mouse with my right hand, and the keypad with my left.
My setup is win8.1 running mobaxterm to a real linux box which runs
xcircuit.
mobaxterm brings its own x11 so there are layers of possible points of
failure here.


> Here are bindings that work for me on the keypad, using the "8" key
> as an example:
>
>     xcircuit::keybind <Key-KP_8> {puts stdout "Typed keypad 8"} \
>        .xcircuit.mainframe.mainarea.drawing
>
>     xcircuit::keybind <Key-KP_Up> {puts stdout "Typed keypad Up"} \
>        .xcircuit.mainframe.mainarea.drawing


How would I write those script parts when I want to modify the anchor
position?


>
>
When Num Lock is off, the keypad 8 key is encoded as "KP_Up" and
> Shift-keypad-8 is encoded as "KP_8".  When Num Lock is on, they are
> reversed.
>
>
When I press Num-Lock, I get report from xcircuit "Key 0x000000 not bound
to any macro.
I was not able to distinguish which mode the num-lock is in.



> I found this reference:
>
>     http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/key-names.html
>
> which shows all of the key names.  I find this helpful since the keypad
> functions sometimes have obscure names, like "KP_Prior" where my
> keypad key is printed "PgUp".
>
> I'm not sure what you mean by "original functionality" but hopefully
> this gives you enough information to work with.  If you have additional
> questions about it, just let me know.
>

By original functionality, I meant the KP_8 and not Shift_KP_8. I am trying
to get the text anchor thing to work without pressing shift key which
complicates the placement of numpad to the left.

-- 
Svenn
_______________________________________________
Xcircuit-dev mailing list
Xcircuit-dev@opencircuitdesign.com
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev

Reply via email to