corrected select all key to position cursor at end

when selecting all using the key sequence (control+a), the cursor was
not being moved to the end of the document, which prevented the current
line form being reported if it was modified (the select all action used
from the edit or context menus were already working properly) - this was
correct by making the select all key sequence call the select all
function
only enable save action when document has been modified