Changeset 2069690 in mainline
- Timestamp:
- 2009-03-05T22:46:14Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4f22731f
- Parents:
- 5ee7377
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/kbd/layout/us_dvorak.c
r5ee7377 r2069690 166 166 [KC_BACKSPACE] = '\b', 167 167 [KC_TAB] = '\t', 168 [KC_ENTER] = '\n' 168 [KC_ENTER] = '\n', 169 [KC_SPACE] = ' ', 170 171 [KC_NSLASH] = '/', 172 [KC_NTIMES] = '*', 173 [KC_NMINUS] = '-', 174 [KC_NPLUS] = '+', 175 [KC_NENTER] = '\n' 176 }; 177 178 static char map_numeric[] = { 179 [KC_N7] = '7', 180 [KC_N8] = '8', 181 [KC_N9] = '9', 182 [KC_N4] = '4', 183 [KC_N5] = '5', 184 [KC_N6] = '6', 185 [KC_N1] = '1', 186 [KC_N2] = '2', 187 [KC_N3] = '3', 188 189 [KC_N0] = '0', 190 [KC_NPERIOD] = '.' 169 191 }; 170 192 … … 198 220 c = translate(ev->key, map_not_shifted, sizeof(map_not_shifted) / sizeof(char)); 199 221 200 if (c != 0 ) return c; 201 222 if (c != 0) return c; 223 224 if ((ev->mods & KM_NUM_LOCK) != 0) 225 c = translate(ev->key, map_numeric, sizeof(map_numeric) / sizeof(char)); 226 else 227 c = 0; 228 229 return c; 202 230 } 203 204 231 205 232 /**
Note:
See TracChangeset
for help on using the changeset viewer.