Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^5: PerlMonks Editor

by parv (Priest)
on Dec 02, 2006 at 23:01 UTC ( #587451=note: print w/replies, xml ) Need Help??

in reply to Re^4: PerlMonks Editor
in thread PerlMonks Editor

Program stops after printing "bad event type" message .. .

bad event type or keysym "_" at line 269, <DATA> line 81.

... but that goes away (and a Tk window emerges) if I change _ to one of [a-zA-Z0-9] but not [-+].

So after source diving, I found that the key symbol is being retrieved, in Tk-804.027/pTk/mTk/generic/tkBind.c:TkKeysymToString(), via XStringToKeysym(3X11) which uses X11/keysymdef.h which does not have any X_[-+_] entry but does have X_(underscore|plus|minus). Needless to say, after changing '_' in the underline key binding to 'underscore', Ctrl-_ worked as expected.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://587451]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2016-10-27 11:48 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (361 votes). Check out past polls.