소스 검색

Enable keyboard activation of legacy contacts menu

Signed-off-by: Christopher Ng <chrng8@gmail.com>
Christopher Ng 1 년 전
부모
커밋
04cec2b686
3개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      core/src/jquery/contactsmenu.js
  2. 0 0
      dist/core-main.js
  3. 0 0
      dist/core-main.js.map

+ 6 - 1
core/src/jquery/contactsmenu.js

@@ -25,6 +25,7 @@
 import $ from 'jquery'
 
 import OC from '../OC'
+import { isA11yActivation } from '../Util/a11y.js'
 
 const LIST = ''
 	+ '<div class="menu popovermenu menu-left hidden contactsmenu-popover">'
@@ -50,7 +51,11 @@ $.fn.contactsMenu = function(shareWith, shareType, appendTo) {
 	appendTo.append(LIST)
 	const $list = appendTo.find('div.contactsmenu-popover')
 
-	$div.click(function() {
+	$div.on('click keydown', function(event) {
+		if (!isA11yActivation(event)) {
+			return
+		}
+
 		if (!$list.hasClass('hidden')) {
 			$list.addClass('hidden')
 			$list.hide()

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/core-main.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/core-main.js.map


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.