forked from mirrors/gecko-dev
		
	This attempts to implement a bunch of the DOM Level 3 Events spec by implementing the KeyboardEvent interface, the document focus context, and dispatching keyup/keydown/keypress events appropriately. There's also some support for multiline text input that's untested. Source-Repo: https://github.com/servo/servo Source-Revision: 2ffa845cf463b14b19322d477a77ffd20efa89a9
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			734 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			734 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
--- WebIDL.py
 | 
						|
+++ WebIDL.py
 | 
						|
@@ -1422,6 +1422,9 @@ class IDLDictionary(IDLObjectWithScope):
 | 
						|
                                   self.identifier.name,
 | 
						|
                                   [member.location] + locations)
 | 
						|
 | 
						|
+    def module(self):
 | 
						|
+        return self.location.filename().split('/')[-1].split('.webidl')[0] + 'Binding'
 | 
						|
+
 | 
						|
     def addExtendedAttributes(self, attrs):
 | 
						|
         assert len(attrs) == 0
 | 
						|
@@ -3398,6 +3398,9 @@ class IDLCallbackType(IDLType, IDLObjectWithScope):
 | 
						|
         self._treatNonCallableAsNull = False
 | 
						|
         self._treatNonObjectAsNull = False
 | 
						|
 
 | 
						|
+    def module(self):
 | 
						|
+        return self.location.filename().split('/')[-1].split('.webidl')[0] + 'Binding'
 | 
						|
+
 | 
						|
     def isCallback(self):
 | 
						|
         return True
 | 
						|
 
 |