mirror of
https://github.com/nextcloud/server.git
synced 2026-04-20 22:00:39 -04:00
Enable keyboard activation of legacy contacts menu
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
b1616dea53
commit
04cec2b686
3 changed files with 9 additions and 4 deletions
7
core/src/jquery/contactsmenu.js
vendored
7
core/src/jquery/contactsmenu.js
vendored
|
|
@ -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()
|
||||
|
|
|
|||
4
dist/core-main.js
vendored
4
dist/core-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/core-main.js.map
vendored
2
dist/core-main.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue