Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
b75d2f7c
Commit
b75d2f7c
authored
10 years ago
by
Mnikolenko ProductEngine
Browse files
Options
Downloads
Patches
Plain Diff
MAINT-3666 FIXED Update modifiers when viewer window becomes key window
parent
7615008e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/llwindow/llopenglview-objc.mm
+9
-0
9 additions, 0 deletions
indra/llwindow/llopenglview-objc.mm
with
9 additions
and
0 deletions
indra/llwindow/llopenglview-objc.mm
+
9
−
0
View file @
b75d2f7c
...
@@ -133,6 +133,10 @@ attributedStringInfo getSegments(NSAttributedString *str)
...
@@ -133,6 +133,10 @@ attributedStringInfo getSegments(NSAttributedString *str)
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector:
@selector
(
windowDidDeminiaturize
:)
name
:
NSWindowDidDeminiaturizeNotification
selector:
@selector
(
windowDidDeminiaturize
:)
name
:
NSWindowDidDeminiaturizeNotification
object:
[
self
window
]];
object:
[
self
window
]];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector:
@selector
(
windowDidBecomeKey
:)
name
:
NSWindowDidBecomeKeyNotification
object:
[
self
window
]];
}
}
-
(
void
)
setOldResize
:(
bool
)
oldresize
-
(
void
)
setOldResize
:(
bool
)
oldresize
...
@@ -159,6 +163,11 @@ attributedStringInfo getSegments(NSAttributedString *str)
...
@@ -159,6 +163,11 @@ attributedStringInfo getSegments(NSAttributedString *str)
callWindowUnhide
();
callWindowUnhide
();
}
}
-
(
void
)
windowDidBecomeKey
:(
NSNotification
*
)
notification
;
{
mModifiers
=
[
NSEvent
modifierFlags
];
}
-
(
void
)
dealloc
-
(
void
)
dealloc
{
{
[[
NSNotificationCenter
defaultCenter
]
removeObserver
:
self
];
[[
NSNotificationCenter
defaultCenter
]
removeObserver
:
self
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment