lobby: hide links focus state unless tab key is hit
This commit is contained in:
parent
eb661a0a17
commit
dd62bf8b28
2 changed files with 8 additions and 4 deletions
|
|
@ -97,7 +97,6 @@ var SessionManager = class SessionManager {
|
|||
|
||||
lobby.list.addEventListener('click', function(e){
|
||||
e.preventDefault()
|
||||
e.target.blur()
|
||||
if (e.target.hasAttribute('data-session')) {
|
||||
ipc.send('sessionOpen',{path:e.target.getAttribute('data-session')})
|
||||
} else if (!READ_ONLY && e.target.tagName == 'span') {
|
||||
|
|
@ -112,17 +111,20 @@ var SessionManager = class SessionManager {
|
|||
var nws = lobby.footer.appendChild(DOM.create('<a href="#" tabindex="0" class="btn new">'+icon('file')+' New</a>'))
|
||||
|
||||
brw.addEventListener('click', (e)=>{
|
||||
e.preventDefault()
|
||||
this.browse()
|
||||
})
|
||||
|
||||
nws.addEventListener('click', (e)=>{
|
||||
e.preventDefault()
|
||||
this.create()
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
DOM.addEventListener(lobby.list, 'mousedown touchstart', function(e){
|
||||
if (e.type == 'mousedown') e.preventDefault()
|
||||
e.target.blur()
|
||||
})
|
||||
|
||||
lobby.open()
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -185,7 +185,9 @@ body {
|
|||
text-overflow: ellipsis;
|
||||
background: none;
|
||||
border-bottom:1rem solid var(--color-bg);
|
||||
|
||||
em {
|
||||
pointer-events: none;
|
||||
}
|
||||
&:last-child {
|
||||
border-bottom:0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue