- char const *t = lex.text();
- string_to = strcpy(new char[strlen(t)+1],t);
- keymap_[(unsigned char)key_from]=string_to;
- if (lyxerr.debugging(Error::KBMAP))
- fprintf(stderr, " `%s'\n", string_to);
+ string string_to = lex.text();
+ //char * string_to =
+ // strcpy(new char[strlen(t)+1], t);
+ keymap_[key_from] = string_to;
+ if (lyxerr.debugging(Debug::KBMAP))
+ lyxerr << "\t`" << string_to << "'"
+ << endl;