Added check when setting navmode to none to release cursor.

Fixes #2374.