mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-01 11:50:07 +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...
|
||||
if(focus && browser.find(':focus').length == 0){
|
||||
this.focus()
|
||||
that.focus()
|
||||
}
|
||||
|
||||
})
|
||||
@ -769,6 +769,8 @@ var BrowserPrototype = {
|
||||
|
||||
// string...
|
||||
// NOTE: this supports several space-separated patterns.
|
||||
// NOTE: this is case-agnostic...
|
||||
// ...for case sensitivity remove .toLowerCase()...
|
||||
// XXX support glob...
|
||||
} else if(typeof(pattern) == typeof('str')){
|
||||
//var pl = pattern.trim().split(/\s+/)
|
||||
@ -778,10 +780,10 @@ var BrowserPrototype = {
|
||||
// remove empty strings...
|
||||
.filter(function(e){ return e.trim() != '' })
|
||||
// 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){
|
||||
e = $(e)
|
||||
var t = e.text()
|
||||
var t = e.text().toLowerCase()
|
||||
for(var p=0; p < pl.length; p++){
|
||||
// NOTE: we are not using search here as it treats
|
||||
// the string as a regex and we need literal
|
||||
|
||||
@ -214,6 +214,8 @@ module.GLOBAL_KEYBOARD = {
|
||||
},
|
||||
A: {
|
||||
alt: 'browseActions',
|
||||
'alt+shift': 'listActions',
|
||||
|
||||
ctrl: 'toggleMark!: "ribbon" "on"',
|
||||
},
|
||||
D: {
|
||||
|
||||
@ -2369,7 +2369,7 @@ var makeActionLister = function(list, filter, pre_order){
|
||||
}))
|
||||
|
||||
// XXX DEBUG
|
||||
window.LIST = o.client
|
||||
//window.LIST = o.client
|
||||
|
||||
return this
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user