Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 8775722794
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 32 lines (27 sloc) 0.799 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
// Created by Satoshi Nakagawa <psychs AT limechat DOT net> <http://github.com/psychs/limechat>
// You can redistribute it and/or modify it under the new BSD license.

@implementation DialogWindow

- (void)sendEvent:(NSEvent *)e
{
/*if ([e type] == NSKeyDown) {
NSInputManager *im = [NSInputManager currentInputManager];
if (!im || !im.markedRange.length) {
NSInteger k = [e keyCode];
NSUInteger m = [e modifierFlags];
BOOL cmd = ((m & NSCommandKeyMask) != 0);
BOOL ctrl = ((m & NSControlKeyMask) != 0);
BOOL shift = ((m & NSShiftKeyMask) != 0);
BOOL alt = ((m & NSAlternateKeyMask) != 0);
if (!shift && !ctrl && !alt && !cmd) {
// no mods
switch (k) {
case 0x35: // esc
[self close];
return;
}
}
}
}*/

[super sendEvent:e];
}

@end
Something went wrong with that request. Please try again.