pub fn modifier_to_code(modifier: Modifier, platform: Platform) -> usize
Convert a modifier to a platform-specific code using standard mappings