ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/keyboard.C
(Generate patch)

Comparing rxvt-unicode/src/keyboard.C (file contents):
Revision 1.69 by root, Thu May 22 18:54:33 2014 UTC vs.
Revision 1.70 by sf-exg, Fri May 23 22:25:34 2014 UTC

91} 91}
92 92
93void 93void
94keyboard_manager::register_action (KeySym keysym, unsigned int state, const wchar_t *ws) 94keyboard_manager::register_action (KeySym keysym, unsigned int state, const wchar_t *ws)
95{ 95{
96 char *translation = rxvt_wcstoutf8 (ws); 96 char *action = rxvt_wcstoutf8 (ws);
97 97
98 keysym_t *key = new keysym_t; 98 keysym_t *key = new keysym_t;
99 99
100 key->keysym = keysym; 100 key->keysym = keysym;
101 key->state = state; 101 key->state = state;
102 key->str = translation; 102 key->str = action;
103 key->type = keysym_t::STRING; 103 key->type = keysym_t::STRING;
104 104
105 if (strncmp (translation, "builtin:", 8) == 0) 105 if (strncmp (action, "builtin:", 8) == 0)
106 key->type = keysym_t::BUILTIN; 106 key->type = keysym_t::BUILTIN;
107 else if (strncmp (translation, "builtin-string:", 15) == 0) 107 else if (strncmp (action, "builtin-string:", 15) == 0)
108 key->type = keysym_t::BUILTIN_STRING; 108 key->type = keysym_t::BUILTIN_STRING;
109 109
110 if (keymap.size () == keymap.capacity ()) 110 if (keymap.size () == keymap.capacity ())
111 keymap.reserve (keymap.size () * 2); 111 keymap.reserve (keymap.size () * 2);
112 112

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines