a temporary fix for vfs/delete
This commit is contained in:
@@ -16,7 +16,7 @@ UI.Checkbox.defaults = {
|
||||
height = 1,
|
||||
width = 3,
|
||||
accelerators = {
|
||||
space = 'checkbox_toggle',
|
||||
[ ' ' ] = 'checkbox_toggle',
|
||||
mouse_click = 'checkbox_toggle',
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ UI.CheckboxGrid.defaults = {
|
||||
UIElement = 'CheckboxGrid',
|
||||
checkedKey = 'checked',
|
||||
accelerators = {
|
||||
space = 'grid_toggle',
|
||||
[ ' ' ] = 'grid_toggle',
|
||||
key_enter = 'grid_toggle',
|
||||
},
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ UI.Chooser.defaults = {
|
||||
rightIndicator = UI.extChars and '\187' or '>',
|
||||
height = 1,
|
||||
accelerators = {
|
||||
space = 'choice_next',
|
||||
[ ' ' ] = 'choice_next',
|
||||
right = 'choice_next',
|
||||
left = 'choice_prev',
|
||||
}
|
||||
|
||||
@@ -730,24 +730,6 @@ function Util.parse(...)
|
||||
return args, options
|
||||
end
|
||||
|
||||
function Util.args(arg)
|
||||
local options, args = { }, { }
|
||||
|
||||
local k = 1
|
||||
while k <= #arg do
|
||||
local v = arg[k]
|
||||
if _ssub(v, 1, 1) == '-' then
|
||||
local opt = _ssub(v, 2)
|
||||
options[opt] = arg[k + 1]
|
||||
k = k + 1
|
||||
else
|
||||
table.insert(args, v)
|
||||
end
|
||||
k = k + 1
|
||||
end
|
||||
return options, args
|
||||
end
|
||||
|
||||
-- http://lua-users.org/wiki/AlternativeGetOpt
|
||||
local function getopt( arg, options )
|
||||
local tab = {}
|
||||
|
||||
Reference in New Issue
Block a user