From f0ba46fd7be63500ac1dd22b78dcb8e334c0e725 Mon Sep 17 00:00:00 2001 From: Ryan Shaw Date: Fri, 18 Dec 2015 16:30:48 -0700 Subject: [PATCH] focus next input when you select flickr image result tile fixes: #CNVS-26048 test plan: when you click / hit "enter" on an image result in the flicker search results, it should focus the next input box in the form (the "alt" field), so you don't have to tab through the other 500 search results. this makes things nicer for keyboard-only users. Change-Id: I453141146a4097bff7e981ac39ac2921a5876530 Reviewed-on: https://gerrit.instructure.com/69245 Tested-by: Jenkins Reviewed-by: Simon Williams Reviewed-by: Aaron Cannon Product-Review: Aaron Cannon QA-Review: Jeremy Putnam --- app/coffeescripts/views/tinymce/InsertUpdateImageView.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/app/coffeescripts/views/tinymce/InsertUpdateImageView.coffee b/app/coffeescripts/views/tinymce/InsertUpdateImageView.coffee index 113379094ba..35ee58bf25b 100644 --- a/app/coffeescripts/views/tinymce/InsertUpdateImageView.coffee +++ b/app/coffeescripts/views/tinymce/InsertUpdateImageView.coffee @@ -124,6 +124,7 @@ define [ @setSelectedImage src: $a.attr('data-fullsize') alt: $a.attr('title') + @$("[name='image[alt]']").focus() onFileLinkDblclick: (event) => # click event is handled on the first click