mirror of
				https://github.com/flynx/pWiki.git
				synced 2025-10-31 11:00:08 +00:00 
			
		
		
		
	home/end keys...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									477e5be961
								
							
						
					
					
						commit
						0511ac879f
					
				| @ -1364,6 +1364,15 @@ var Outline = { | |||||||
| 					this.toggleCollapse(false) | 					this.toggleCollapse(false) | ||||||
| 					: this.focus('next') } }, | 					: this.focus('next') } }, | ||||||
| 
 | 
 | ||||||
|  | 		Home: function(evt){ | ||||||
|  | 			if(this.get('edited')){ | ||||||
|  | 				return } | ||||||
|  | 			this.focus(0) }, | ||||||
|  | 		End: function(evt){ | ||||||
|  | 			if(this.get('edited')){ | ||||||
|  | 				return } | ||||||
|  | 			this.focus(-1) }, | ||||||
|  | 
 | ||||||
| 		PageUp: function(evt){ | 		PageUp: function(evt){ | ||||||
| 			var edited = this.get('edited') | 			var edited = this.get('edited') | ||||||
| 			if(!edited  | 			if(!edited  | ||||||
| @ -1379,7 +1388,7 @@ var Outline = { | |||||||
| 				evt.preventDefault() | 				evt.preventDefault() | ||||||
| 				this.shift('down') } }, | 				this.shift('down') } }, | ||||||
| 
 | 
 | ||||||
| 		// indent...
 | 		// indent..
 | ||||||
| 		Tab: function(evt){ | 		Tab: function(evt){ | ||||||
| 			evt.preventDefault() | 			evt.preventDefault() | ||||||
| 			var edited = this.get('edited') | 			var edited = this.get('edited') | ||||||
|  | |||||||
| @ -45,10 +45,10 @@ var setup = function(){ | |||||||
|   -  |   -  | ||||||
| - ## Bugs: | - ## Bugs: | ||||||
|   - BUG: editor: FF seems to update the style every other key press -- should be live... |   - BUG: editor: FF seems to update the style every other key press -- should be live... | ||||||
|  |   - BUG: scrolling into view needs tuning... | ||||||
|  |   - BUG: mobile browsers behave quite chaotically ignoring parts of the styling... | ||||||
|   - |   - | ||||||
| - ## ToDo: | - ## ToDo: | ||||||
|   - ASAP: scroll into view is bad... |  | ||||||
|   - ASAP: mobile browsers behave quite chaotically ignoring parts of the styling... |  | ||||||
|   - pgup/pgdown/home/end buttons |   - pgup/pgdown/home/end buttons | ||||||
|   - identify a block (index, id, ...) |   - identify a block (index, id, ...) | ||||||
|   - FEATURE: "crop" -- view block tree separately... |   - FEATURE: "crop" -- view block tree separately... | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user