Automated build for v0.01
This commit is contained in:
		
						commit
						791b998489
					
				
					 2771 changed files with 222096 additions and 0 deletions
				
			
		
							
								
								
									
										31
									
								
								plugins/hotkeys_noscroll/init.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								plugins/hotkeys_noscroll/init.php
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,31 @@ | |||
| <?php | ||||
| class Hotkeys_Noscroll extends Plugin { | ||||
| 	private $host; | ||||
| 
 | ||||
| 	function about() { | ||||
| 		return array(1.0, | ||||
| 			"n/p hotkeys move between articles without scrolling", | ||||
| 			"fox"); | ||||
| 	} | ||||
| 
 | ||||
| 	function init($host) { | ||||
| 		$this->host = $host; | ||||
| 
 | ||||
| 		$host->add_hook($host::HOOK_HOTKEY_MAP, $this); | ||||
| 	} | ||||
| 
 | ||||
| 	function hook_hotkey_map($hotkeys) { | ||||
| 
 | ||||
| 		$hotkeys["(40)|Down"] = "next_article_noscroll"; | ||||
| 		$hotkeys["(38)|Up"] = "prev_article_noscroll"; | ||||
| 		$hotkeys["n"] = "next_article_noscroll"; | ||||
| 		$hotkeys["p"] = "prev_article_noscroll"; | ||||
| 
 | ||||
| 		return $hotkeys; | ||||
| 	} | ||||
| 
 | ||||
| 	function api_version() { | ||||
| 		return 2; | ||||
| 	} | ||||
| 
 | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Fmstrat
						Fmstrat