preventing default action if user has the same combination