Port "Option to control cursor in text fields using volume keys (2/2)"

Change-Id: I20109c880ed3ac27783f825557f6830d83e3dd5d