Language:
Lua     Change language:
Pastebin: 132019
Author: Anonymous
Subject: Untitled
Created: 2010-01-27 05:27:28
Download and save
Toggle line numbers
1function lib:IterateShortcutsByKeys() 
2    local t = {} 
3    for k in pairs(shortcuts) do 
4        tinsert(t, k:tolower()) 
5    end 
6    tsort(t) 
7    local key 
8    local i = 0 
9    local iter = function () 
10        i = i + 1 
11        if t[i] == nil then 
12            return nil 
13        else 
14            key = t[i] 
15            return key, shortcuts[key] 
16        end 
17    end 
18    return iter 
19end 
Thread:
[132019] Untitled by Anonymous at 2010-01-27 05:27:28
Tip: Click the line numbers to toggle highliting on that line.

Paste followup:

Language:
Author:
Subject:


    Tabstop:     bigger biggest
Note: You can prefix a line with "@@@" to highlight it.