HACK: using selection size to detect invalid numeric input (Opera)