Changeset 1714 for trunk/gregarius/plugins/keyboardnavigation.php
- Timestamp:
- 05/21/07 08:51:36 (18 months ago)
- Files:
-
- 1 modified
-
trunk/gregarius/plugins/keyboardnavigation.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gregarius/plugins/keyboardnavigation.php
r1713 r1714 24 24 25 25 /// Name: Keyboard naviation 26 /// Author: Marco Bonetti 26 /// Author: Marco Bonetti & Chris J. Friesen 27 27 /// Description: Navigate between items without using your mouse. 28 28 /// Version: 0.4 … … 57 57 '__kbnav_ToggleFlag' => 'Toggle Flagged state of the current item', 58 58 '__kbnav_NextMarkRead' => 'Mark current item as read, move to the next one', 59 '__kbnav_MarkAllRead' => 'Mark all shown items as read', 59 60 '__kbnav_ScrollTop' => 'Scroll to the top of the window', 60 61 '__kbnav_ToggleCollapse' => 'In the Lilina theme, toggle the collapsed state of the current item', … … 73 74 if (!isset($kmap['__kbnav_ToggleFlag']['key'])) {$kmap['__kbnav_ToggleFlag']['key'] = 'f';} 74 75 if (!isset($kmap['__kbnav_NextMarkRead']['key'])) {$kmap['__kbnav_NextMarkRead']['key'] = 'm';} 76 if (!isset($kmap['__kbnav_MarkAllRead']['key'])) { 77 $kmap['__kbnav_MarkAllRead']['key'] = 'm'; 78 $kmap['__kbnav_MarkAllRead']['modifier'] = 'shift'; 79 } 75 80 if (!isset($kmap['__kbnav_ScrollTop']['key'])) {$kmap['__kbnav_ScrollTop']['key'] = 'h';} 76 81 if (!isset($kmap['__kbnav_ToggleCollapse']['key'])) {$kmap['__kbnav_ToggleCollapse']['key'] = 'c';} … … 342 347 return false; 343 348 } 349 function __kbnav_MarkAllRead() { 350 var forms = document.getElementsByTagName('form'); 351 for(var i=0;i<forms.length;i++) { 352 if (forms[i].className == 'markReadForm') { 353 forms[i].submit(); 354 break; 355 } 356 } 357 return false; 358 } 344 359 345 360 <?php
