Hello Svenn,
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?
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.
I cannot possibly replicate your setup, but it appears to me to be a case
of the keypad generating codes that are unassigned in xcircuit, which has
internal settings for the keypad functions like "up", "down", etc., and for
Shift-1, Shift-2, etc., but not for plain keypad 1, 2, 3, .... But I
tried adding the plain keypad numbers and that doesn't appear to cause
any problems.
My best guess is that if you put this in a .xcircuitrc file in your home
directory (or in , it should work:
xcircuit::bindkey KP_1 Anchor 0
xcircuit::bindkey KP_2 Anchor 1
xcircuit::bindkey KP_3 Anchor 2
xcircuit::bindkey KP_4 Anchor 3
xcircuit::bindkey KP_5 Anchor 4
xcircuit::bindkey KP_6 Anchor 5
xcircuit::bindkey KP_7 Anchor 6
xcircuit::bindkey KP_8 Anchor 7
xcircuit::bindkey KP_9 Anchor 8
Give that a try and let me know if it works for you.
This can also be added to the source code in keybindings.c; just
duplicate the lines 623 through 631 but remove the "SHIFT |" from
each entry. I may just apply that as a patch to the source, since as
I said, it doesn't cause any issues that I can see.
Regards,
Tim
+--------------------------------+-------------------------------------+
| R. Timothy Edwards (Tim) | email: t...@opencircuitdesign.com |
| Open Circuit Design | web: http://opencircuitdesign.com |
| 19601 Jerusalem Road | phone: (240) 489-3255 |
| Poolesville, MD 20837 | cell: (408) 828-8212 |
+--------------------------------+-------------------------------------+
_______________________________________________
Xcircuit-dev mailing list
Xcircuit-dev@opencircuitdesign.com
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev