JRE-270 "Comment with line comment" comments multiple lines
diff --git a/src/macosx/native/sun/awt/AWTView.m b/src/macosx/native/sun/awt/AWTView.m
index 71bbbfb..e3b6d8e 100644
--- a/src/macosx/native/sun/awt/AWTView.m
+++ b/src/macosx/native/sun/awt/AWTView.m
@@ -363,6 +363,8 @@
[self deliverJavaKeyEventHelper: newEvent];
}
+static const int COCOA_KEYCODE_US_BACKSLASH = 44;
+
- (BOOL) performKeyEquivalent: (NSEvent *) event {
// French keyboard layouts invoke the method several times
@@ -371,7 +373,7 @@
// Current keyboard layout status call could be quite expensive.
// We assume that where are no keyboards that actually use
// the improper combination
- if ([event keyCode] == 44 && [[event characters] isEqual:@"+"]) {
+ if ([event keyCode] == COCOA_KEYCODE_US_BACKSLASH && [[event characters] isEqual:@"+"]) {
return 0;
}