Bug 659602 - Provide an abstraction for the platform's use of modifier keys
Add enum GdkModifierIntent which identifies use cases for modifier masks and GdkKeyMap::get_modifier_mask(). Add a default implementation which returns what is currently hardcoded all over GTK+, and an implementation in the quartz backend. Also add gtk_widget_get_modifier_mask() which simplifies things by doing widget->display->keymap->get_modifier_mask().
This commit is contained in:
		 Michael Natterer
					Michael Natterer
				
			
				
					committed by
					
						 Michael Natterer
						Michael Natterer
					
				
			
			
				
	
			
			
			 Michael Natterer
						Michael Natterer
					
				
			
						parent
						
							04009aa332
						
					
				
				
					commit
					4a7a67339a
				
			| @ -114,6 +114,9 @@ void           gdk_keymap_add_virtual_modifiers    (GdkKeymap           *keymap, | ||||
|                                                     GdkModifierType     *state); | ||||
| gboolean       gdk_keymap_map_virtual_modifiers    (GdkKeymap           *keymap, | ||||
|                                                     GdkModifierType     *state); | ||||
| GdkModifierType gdk_keymap_get_modifier_mask       (GdkKeymap           *keymap, | ||||
|                                                     GdkModifierIntent    intent); | ||||
|  | ||||
|  | ||||
| /* Key values | ||||
|  */ | ||||
|  | ||||
		Reference in New Issue
	
	Block a user