24 ways to impress your friends

Jump to menu

Vote up?

Albert Peschar

Hey, this should work for accented letters.

var char = string.fromCharCode(which);
if(char.toLowerCase() == char) var is_lower_case = true;
if(char.toUpperCase() == char) var is_upper_case = true;