mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	dynamically translating kbd based on actions
This commit is contained in:
		| @@ -1,3 +1,4 @@ | ||||
| import keyboardActionService from './keyboard_actions.js'; | ||||
| const $contextMenuContainer = $("#context-menu-container"); | ||||
|  | ||||
| let dateContextMenuOpenedMs = 0; | ||||
| @@ -69,6 +70,8 @@ async function initContextMenu(event, contextMenu) { | ||||
|  | ||||
|     addItems($contextMenuContainer, await contextMenu.getContextMenuItems()); | ||||
|  | ||||
|     keyboardActionService.updateKbdElements($contextMenuContainer); | ||||
|  | ||||
|     // code below tries to detect when dropdown would overflow from page | ||||
|     // in such case we'll position it above click coordinates so it will fit into client | ||||
|     const clickPosition = event.pageY; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user