> Summary
| Ways to use the Keys class, to define keyboard shortcuts etc. Remember
| that with xiki shortcuts you hold down the control key and "type the
| acronym" (the first letter in each word) while holding down the control
| key.
|
> Define keyboard shortcuts
| Defines the key Control-e Control-y
|
| Keys.enter_name { View << "Steve" }
|
| Defines the key Control-e Control-y (with no mnemonic)
|
| Keys.EN { View << "Steve again" }
|
> Where to put them
| You can put keyboard shortcuts into any file that gets required by xiki.
| For example, you could create a file like this:
|
- @~/my_xiki_stuff/
- keys.rb
| # My shortcuts
| Keys.enter_name { View << "Steve" }
| Keys.enter_yay { View << "Yay" }
|
| Then you could require this file when xiki loads by adding this line:
|
- @~/.el4r/
- init.rb
| require "~/my_xiki_stuff/keys"