events - Jira escape button behaviour -
i working jira , stumbled on problem. if on browse page of issue , editing textfield, pressing escape discards changes. doing same editing comment field, doesn't discard changes on comment. want changes saved when pressing escape , losing focus on editing field content. same happens if click in empty area.
of course not 1 searching solution problem:
https://jira.atlassian.com/browse/jra-36670
https://jira.atlassian.com/browse/jra-41814
now not here discuss meaning of escape button. there several reasons behaviour wish (start reading comments on first link).
is there way edit keyevent handling of jira? or overwrite event behaviour of standard fields? adding events via browser plugins or similar doesn't content lost then.
i hope there elegant solution out there not searching one. suggestions?
athlassian did esc-behavior. costs people nerves , money. esc shouldn't save imho should @ least offer possibility of retreiving lost work. jira-description might realy big , if don't save lose temper , resources.
there nice workaround though. found in jira-development jira :)
the workaround:
- install this extension
- open of jira pages, click "cjs" icon in toolbar
paste snippet
document.addeventlistener("keydown",function(e) { var charcode = e.charcode || e.keycode || e.which; if (charcode == 27) { alert("please not press escape.") } }); document.addeventlistener("keyup",function(e){ var charcode = e.charcode || e.keycode || e.which; if (charcode == 27){ alert("please not press escape.") } });
now alert every time escape key pressed , content preserved.
Comments
Post a Comment