mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-24 00:54:03 +02:00
Show tooltips on focus as well as hover (re: #8004)
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user