mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-01 11:50:07 +00:00
fixed a couple mo minor focus issues...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
da05f429da
commit
03e857dd80
@ -97,7 +97,7 @@ var OverlayPrototype = {
|
||||
// 2'nd click -- close overlay
|
||||
//
|
||||
// XXX HACK: need a better way to do this...
|
||||
var focused
|
||||
var focused = document.hasFocus()
|
||||
var unlock = function() { setTimeout(function(){ focused = true }, 200) }
|
||||
var lock = function() { focused = false }
|
||||
// blur-lock...
|
||||
@ -126,13 +126,14 @@ var OverlayPrototype = {
|
||||
.addClass('blur')
|
||||
.append(this.dom)
|
||||
|
||||
// focus the client...
|
||||
// pass focus to the client...
|
||||
this.on('focus click', function(){
|
||||
if(client.dom && client.focus){
|
||||
client.focus()
|
||||
|
||||
} else {
|
||||
this.focus()
|
||||
}
|
||||
})
|
||||
|
||||
this.focus()
|
||||
|
||||
return this
|
||||
},
|
||||
|
||||
@ -4880,8 +4880,8 @@ var URLHistoryUIActions = actions.Actions({
|
||||
// move to top...
|
||||
['♦',
|
||||
function(p){
|
||||
var top = this.filter().first()
|
||||
var cur = this.filter('"'+p+'"')
|
||||
var top = this.filter('*', false).first()
|
||||
var cur = this.filter('"'+p+'"', false)
|
||||
|
||||
if(!top.is(cur)){
|
||||
top.before(cur)
|
||||
@ -4891,7 +4891,7 @@ var URLHistoryUIActions = actions.Actions({
|
||||
// mark for removal...
|
||||
['×',
|
||||
function(p){
|
||||
var e = this.filter('"'+p+'"')
|
||||
var e = this.filter('"'+p+'"', false)
|
||||
.toggleClass('strike-out')
|
||||
|
||||
if(e.hasClass('strike-out')){
|
||||
@ -4938,7 +4938,7 @@ var URLHistoryUIActions = actions.Actions({
|
||||
.select(cur)
|
||||
.addClass('highlighted')
|
||||
|
||||
return list
|
||||
return o
|
||||
}],
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user