mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-11-03 17:13:05 +00:00 
			
		
		
		
	Merge pull request #2049 from inmysocks/patch-11
Let $keyboard trigger action-widgets
This commit is contained in:
		@@ -42,6 +42,7 @@ KeyboardWidget.prototype.render = function(parent,nextSibling) {
 | 
				
			|||||||
	// Add a keyboard event handler
 | 
						// Add a keyboard event handler
 | 
				
			||||||
	domNode.addEventListener("keydown",function (event) {
 | 
						domNode.addEventListener("keydown",function (event) {
 | 
				
			||||||
		if($tw.utils.checkKeyDescriptor(event,self.keyInfo)) {
 | 
							if($tw.utils.checkKeyDescriptor(event,self.keyInfo)) {
 | 
				
			||||||
 | 
								self.invokeActions(this,event);
 | 
				
			||||||
			self.dispatchMessage(event);
 | 
								self.dispatchMessage(event);
 | 
				
			||||||
			event.preventDefault();
 | 
								event.preventDefault();
 | 
				
			||||||
			event.stopPropagation();
 | 
								event.stopPropagation();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user