This is a stub. Rather than try to have everyone's favorite hotkey settings added to the code as an infinite list of new plugins, it seemed like a good idea to provide one stub plugin that anyone could easily customize to fit their own site. I simply modified the swap_jk plugin and added a lot of comments and a couple examples. Note that it already includes the new *=Shift prefix.

// What if you want per-user hotkeys?// There's currently no way for a user to customize their own keys.// You can provide multiple hotkey plugins, if you like. // To do so:// make a new plugins/user1_keys directory// copy this init.php file to that directory// change this class name to a unique name, e.g. "User1_Custom_Keys"class My_Custom_Keys extends Plugin {

// This is where the hotkey maps are defined. You can uncomment // the example codes below, or add your own.//// Each map looks like this:// $hotkeys[KEYS] = "KEY_FUNCTION";//// KEYS can be:// "n" = a single key character// "*n" = Shift + key character (Shift-n)// "^n" = Ctrl + key character (Ctrl-n)// "f q" = a sequence of two keys// "(37)|left" = a javascript key code and label// "^(38)|Ctrl-Up" = can use * Shift or ^ Ctrl with key codes// (search the web for "javascript key codes" for more examples)// // KEY_FUNCTION can be any of the functions defined by // get_hotkeys_info() located in the file include/functions.php//// The default hotkey bindings are defined by // get_hotkeys_map() also located in the file include/functions.php

// What if you want per-user hotkeys?// There's currently no way for a user to customize their own keys.// You can provide multiple hotkey plugins, if you like. // To do so:// make a new plugins/user1_keys directory// copy this init.php file to that directory// change this class name to a unique name, e.g. "User1_Custom_Keys"class My_Custom_Keys extends Plugin {

// This is where the hotkey maps are defined. You can uncomment // the example codes below, or add your own.//// Each map looks like this:// $hotkeys[KEYS] = "KEY_FUNCTION";//// KEYS can be:// "n" = a single key character// "*n" = Shift + key character (Shift-n)// "^n" = Ctrl + key character (Ctrl-n)// "f q" = a sequence of two keys// "(37)|left" = a javascript key code and label// "^(38)|Ctrl-Up" = can use * Shift or ^ Ctrl with key codes// (search the web for "javascript key codes" for more examples)// // KEY_FUNCTION can be any of the functions defined by // get_hotkeys_info() located in the file include/functions.php//// The default hotkey bindings are defined by // get_hotkeys_map() also located in the file include/functions.php

If you meant that you want to disable all built-in hotkeys and just use the ones you define yourself, just return an array with your own definitions in the above mentioned function (i.e. create a new array instead of reusing the function argument and return that).

Any idea how to get page down functionality mapped to a key? In Chrome, if the focus is in the article list, page down (or space bar) advances to the next visible page of articles. The issue is getting the focus to the article list is a bit awkward, especially on a tablet, and I'd rather set pgup/pgdn to perform this function globally, even if the focus is in the feed list.

--edit --first part of question solved. Sorry for not being good at forum searches.--end edit--

As a side issue, for those who are in fact developers / have experience with tt-rss code and plugins : do you think it would be achievable/easy to try to make articles open/select in the position they are? As for now, whenever an article is select for opening, it becomes the first on the list. (i wonder if maybe this could be so easy as to create a custom theme mod)

Is there any way to use this plugin to hook into the share buttons and article note feature at the bottom of each article? Anyone doing anything like that? I use keyboard shortcuts for most of what I do in TT-RSS and it would be convenient to not have to scroll and find buttons to click on.