Show tooltips on focus as well as hover (re: #8004)

This commit is contained in:
Quincy Morgan
2020-10-01 12:12:46 -04:00
parent 118a91ea33
commit be208be704
+9 -2
View File
@@ -171,8 +171,15 @@ export function uiPopover(klass) {
if (d3_event.buttons !== 0) return;
show.apply(this, arguments);
});
anchor.on(_pointerPrefix + 'leave.popover', function() {
})
.on(_pointerPrefix + 'leave.popover', function() {
hide.apply(this, arguments);
})
// show on focus too for better keyboard navigation support
.on('focus.popover', function() {
show.apply(this, arguments);
})
.on('blur.popover', function() {
hide.apply(this, arguments);
});