add keyboard shortcuts to unsaved dialog warning on mac os x

closes PR 12927
closes PR 10708
closes PR 8996