Changeset 4f22731f in mainline
- Timestamp:
- 2009-03-06T08:15:42Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e5855f2
- Parents:
- 2069690
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/kbd/layout/us_dvorak.c
r2069690 r4f22731f 28 28 29 29 /** @addtogroup kbd 30 * @brief 30 * @brief US Dvorak Simplified Keyboard layout. 31 31 * @{ 32 */ 32 */ 33 33 34 34 #include <kbd.h> … … 193 193 static int translate(unsigned int key, char *map, size_t map_length) 194 194 { 195 if (key >= map_length) return 0; 196 return map[key]; 195 if (key >= map_length) 196 return 0; 197 return map[key]; 197 198 } 198 199 … … 206 207 207 208 c = translate(ev->key, map_neutral, sizeof(map_neutral) / sizeof(char)); 208 if (c != 0) return c; 209 if (c != 0) 210 return c; 209 211 210 212 if (((ev->mods & KM_SHIFT) != 0) ^ ((ev->mods & KM_CAPS_LOCK) != 0)) … … 213 215 c = translate(ev->key, map_lcase, sizeof(map_lcase) / sizeof(char)); 214 216 215 if (c != 0) return c; 217 if (c != 0) 218 return c; 216 219 217 220 if ((ev->mods & KM_SHIFT) != 0) … … 220 223 c = translate(ev->key, map_not_shifted, sizeof(map_not_shifted) / sizeof(char)); 221 224 222 if (c != 0) return c; 225 if (c != 0) 226 return c; 223 227 224 228 if ((ev->mods & KM_NUM_LOCK) != 0) … … 232 236 /** 233 237 * @} 234 */ 238 */
Note:
See TracChangeset
for help on using the changeset viewer.