mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-02 04:10:11 +00:00
now browse filter is case-agnostic...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
4aa6ec56ed
commit
3eb4d2c695
@ -647,7 +647,7 @@ var BrowserPrototype = {
|
|||||||
|
|
||||||
// maintain focus within the widget...
|
// maintain focus within the widget...
|
||||||
if(focus && browser.find(':focus').length == 0){
|
if(focus && browser.find(':focus').length == 0){
|
||||||
this.focus()
|
that.focus()
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
@ -769,6 +769,8 @@ var BrowserPrototype = {
|
|||||||
|
|
||||||
// string...
|
// string...
|
||||||
// NOTE: this supports several space-separated patterns.
|
// NOTE: this supports several space-separated patterns.
|
||||||
|
// NOTE: this is case-agnostic...
|
||||||
|
// ...for case sensitivity remove .toLowerCase()...
|
||||||
// XXX support glob...
|
// XXX support glob...
|
||||||
} else if(typeof(pattern) == typeof('str')){
|
} else if(typeof(pattern) == typeof('str')){
|
||||||
//var pl = pattern.trim().split(/\s+/)
|
//var pl = pattern.trim().split(/\s+/)
|
||||||
@ -778,10 +780,10 @@ var BrowserPrototype = {
|
|||||||
// remove empty strings...
|
// remove empty strings...
|
||||||
.filter(function(e){ return e.trim() != '' })
|
.filter(function(e){ return e.trim() != '' })
|
||||||
// remove '\' -- enables direct string comparison...
|
// remove '\' -- enables direct string comparison...
|
||||||
.map(function(e){ return e.replace(/\\(\s)/g, '$1') })
|
.map(function(e){ return e.replace(/\\(\s)/g, '$1').toLowerCase() })
|
||||||
var filter = function(i, e){
|
var filter = function(i, e){
|
||||||
e = $(e)
|
e = $(e)
|
||||||
var t = e.text()
|
var t = e.text().toLowerCase()
|
||||||
for(var p=0; p < pl.length; p++){
|
for(var p=0; p < pl.length; p++){
|
||||||
// NOTE: we are not using search here as it treats
|
// NOTE: we are not using search here as it treats
|
||||||
// the string as a regex and we need literal
|
// the string as a regex and we need literal
|
||||||
|
|||||||
@ -214,6 +214,8 @@ module.GLOBAL_KEYBOARD = {
|
|||||||
},
|
},
|
||||||
A: {
|
A: {
|
||||||
alt: 'browseActions',
|
alt: 'browseActions',
|
||||||
|
'alt+shift': 'listActions',
|
||||||
|
|
||||||
ctrl: 'toggleMark!: "ribbon" "on"',
|
ctrl: 'toggleMark!: "ribbon" "on"',
|
||||||
},
|
},
|
||||||
D: {
|
D: {
|
||||||
|
|||||||
@ -2369,7 +2369,7 @@ var makeActionLister = function(list, filter, pre_order){
|
|||||||
}))
|
}))
|
||||||
|
|
||||||
// XXX DEBUG
|
// XXX DEBUG
|
||||||
window.LIST = o.client
|
//window.LIST = o.client
|
||||||
|
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user