Sha256: 960f88bff7ff96f50a03f3f4a3774b4c42dac89135a2192cce8c94a773d27f34
Contents?: true
Size: 1.17 KB
Versions: 4
Compression:
Stored size: 1.17 KB
Contents
module RubyCurses module ListKeys ## Note: keeping variables gives the false feeling that one can change the var anytime. # That was possible earlier, but now that i am binding the key at construction time # any changes to the vars after construction won't have an effect. def install_list_keys @KEY_ROW_SELECTOR ||= ?\C-x @KEY_GOTO_TOP ||= ?\M-0 @KEY_GOTO_BOTTOM ||= ?\M-9 @KEY_ASK_FIND_FORWARD ||= ?\M-f @KEY_ASK_FIND_BACKWARD ||= ?\M-F @KEY_FIND_NEXT ||= ?\M-g @KEY_FIND_PREV ||= ?\M-G @KEY_SCROLL_FORWARD ||= ?\C-n @KEY_SCROLL_BACKWARD ||= ?\C-p @KEY_CLEAR_SELECTION ||= ?\M-e @KEY_PREV_SELECTION ||= ?\M-" @KEY_NEXT_SELECTION ||= ?\M-' =begin bind_key(@KEY_ROW_SELECTOR) { toggle_row_selection } bind_key(@KEY_GOTO_TOP) { goto_top } bind_key(@KEY_GOTO_BOTTOM) { goto_bottom } bind_key(@KEY_CLEAR_SELECTION) { clear_selection } bind_key(@KEY_ASK_FIND_FORWARD) { ask_search_forward } bind_key(@KEY_ASK_FIND_BACKWARD) { ask_search_backward } bind_key(@KEY_FIND_NEXT) { find_next } bind_key(@KEY_FIND_PREV) { find_prev } =end end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
rkumar-rbcurse-0.1.0 | lib/rbcurse/listkeys.rb |
rkumar-rbcurse-0.1.1 | lib/rbcurse/listkeys.rb |
rbcurse-0.1.1 | lib/rbcurse/listkeys.rb |
rbcurse-0.1.0 | lib/rbcurse/listkeys.rb |