5.5 version comments overwrite/auto-clear

Permalink
When publishing a page the version comments box has a pre-filled value, in my case 'Version 6' (as example). The cursor is already at the start of the box, so I go to overtype with my comment, but my typed text does not clear/overwrite the existing pre-filled value.

This feels clunky compared to 5.4/other webapps as I need to click in the comments box, clear pre-filled value, then type my new comment. My preference would be to auto-clear the pre-filled value if the cursor is not moved, then one can publish, type comment, press return - done. No use of backspace/delete/arrow keys or mouse required.

You may want to take some ideas from the way toggl.com do this. They also have keyboard shortcuts which makes input ultra speedy.

2 attachments, comments welcome.

2 Attachments

 
12345j replied on at Permalink Best Answer Reply
12345j
i've submitted a pull here:https://github.com/12345j/concrete5/commit/8432358bc9be7eef21d1b0cae...
that does this. it will hopefully get merged into the core.
c5bruceandwalker replied on at Permalink Reply
I think your patch relies on a mouse click event? ie i have to touch the lump of plastic with a wire hanging out of it when both hands are already at the keyboard.

The patch sort-of helps for now (thanks!), but ideally it would be nice not to touch the mouse at all to publish a page.

-Paul
12345j replied on at Permalink Reply
12345j
nope, it'll be selected when you click exit edit mode because that automatically focuses on the version comments are. try it.