WebCore:
[WebKit-https.git] / WebKit / Misc.subproj / WebNSEventExtras.m
index f9c0881..2743dfe 100644 (file)
@@ -5,6 +5,8 @@
 
 #import <WebKit/WebNSEventExtras.h>
 
+#import <AppKit/NSKeyBindingManager.h>
+
 @implementation NSEvent (WebExtras)
 
 -(BOOL)_web_isKeyEvent:(unichar)key
     return [self _web_isKeyEvent:tabKey] || [self _web_isKeyEvent:shiftTabKey];
 }
 
+- (BOOL)_web_keyBindingManagerHasBinding
+{
+    NSDictionary *keyBindings = [[NSKeyBindingManager sharedKeyBindingManager] dictionary];
+    return [keyBindings objectForKey:[self characters]] != nil;
+}
+
 @end