Fix ESc issue on commit dialog.

@ussuri