 
                   # trigger final change event
                   triggerChange(elem)
+
+                if event.which == 65
+                  elem[0].setSelectionRange(0, elem.val().length) # highlight the entire field
 
               else
 


    isBackspace = (event)->
      event.which == 8

    getOptions = (scope, attrs) ->
        options = angular.copy defaultOptions


    defaultOptions = smartNumberConfig.defaultOptions

    # 0 = tab, 8 = backspace , 13 = enter, 46 = delete, 37 = left arrow, 39 = right arrow, 65 = A
    controlKeys = [0,8,13, 46, 37, 39, 65] 

    # 37 = left arrow, 39 = right arrow, 9 = enter, 33 = page up, 34 = page down
    inertKeys = [37, 39, 9, 33, 34]
