diff options
author | Oz Linden <oz@lindenlab.com> | 2015-02-24 15:48:28 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2015-02-24 15:48:28 -0500 |
commit | 905431cf60c5670b6b069f0881778ada6ceaa035 (patch) | |
tree | 59cc1d383cc9025a499cae686bc5786992d7febe /indra/llwindow | |
parent | a91482f0afa38c39a027f5b54bca652147917f2a (diff) | |
parent | 9b45bc992edf8d049d8a1abe2e778870a493295a (diff) |
merge changes for 3.7.25-release
Diffstat (limited to 'indra/llwindow')
-rw-r--r-- | indra/llwindow/llopenglview-objc.mm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/llwindow/llopenglview-objc.mm b/indra/llwindow/llopenglview-objc.mm index 959dbc1040..1c9160a42d 100644 --- a/indra/llwindow/llopenglview-objc.mm +++ b/indra/llwindow/llopenglview-objc.mm @@ -133,6 +133,10 @@ attributedStringInfo getSegments(NSAttributedString *str) [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(windowDidDeminiaturize:) name:NSWindowDidDeminiaturizeNotification object:[self window]]; + + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(windowDidBecomeKey:) name:NSWindowDidBecomeKeyNotification + object:[self window]]; } - (void)setOldResize:(bool)oldresize @@ -159,6 +163,11 @@ attributedStringInfo getSegments(NSAttributedString *str) callWindowUnhide(); } +- (void)windowDidBecomeKey:(NSNotification *)notification; +{ + mModifiers = [NSEvent modifierFlags]; +} + - (void)dealloc { [[NSNotificationCenter defaultCenter] removeObserver:self]; |