forked from MapComplete/MapComplete
		
	A11y: improve documentation of hotkeys, keyboard navigation acts more like an aria-grid
This commit is contained in:
		
							parent
							
								
									6da72b80ef
								
							
						
					
					
						commit
						c6f738609f
					
				
					 7 changed files with 85 additions and 43 deletions
				
			
		|  | @ -511,7 +511,19 @@ export class MapLibreAdaptor implements MapProperties, ExportableMap { | |||
|             await Utils.waitFor(250) | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     public installCustomKeyboardHandler(viewport: Store<HTMLDivElement>) { | ||||
|         viewport.mapD( | ||||
|             (viewport) => { | ||||
|                 const map = this._maplibreMap.data | ||||
|                 if (!map) { | ||||
|                     return | ||||
|                 } | ||||
|                 const oldKeyboard = map.keyboard | ||||
|                 oldKeyboard._panStep = viewport.getBoundingClientRect().width | ||||
|             }, | ||||
|             [this._maplibreMap] | ||||
|         ) | ||||
|     } | ||||
|     private removeCurrentLayer(map: MLMap): void { | ||||
|         if (this._currentRasterLayer) { | ||||
|             // hide the previous layer
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue