Fixed enter key not being handled properly when editing amount.