summaryrefslogtreecommitdiff
path: root/indra/newview/llappdelegate-objc.mm
diff options
context:
space:
mode:
authorGeenz <geenz@geenzo.com>2013-06-17 10:28:32 -0400
committerGeenz <geenz@geenzo.com>2013-06-17 10:28:32 -0400
commit2253d22eb85a6b4c5e48b9905d807d0ac48b1930 (patch)
tree510e9861bf992477c8a1b78b4f7bb5d8a4ed93eb /indra/newview/llappdelegate-objc.mm
parent440a1ee3bae4ea9553fa57d806f942a472923190 (diff)
Have showInputWindow hand off input events to the bottom line input window.
Diffstat (limited to 'indra/newview/llappdelegate-objc.mm')
-rw-r--r--indra/newview/llappdelegate-objc.mm7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llappdelegate-objc.mm b/indra/newview/llappdelegate-objc.mm
index 403c307085..cec9c586e6 100644
--- a/indra/newview/llappdelegate-objc.mm
+++ b/indra/newview/llappdelegate-objc.mm
@@ -71,7 +71,7 @@
}
}
-- (void) showInputWindow:(bool)show withText:(id)text
+- (void) showInputWindow:(bool)show withEvent:(NSEvent*)textEvent
{
// How to add support for new languages with the input window:
// Simply append this array with the language code (ja for japanese, ko for korean, zh for chinese, etc.)
@@ -83,7 +83,10 @@
{
NSLog(@"Showing input window.");
[inputWindow makeKeyAndOrderFront:inputWindow];
- [inputView setMarkedText:text selectedRange:NSMakeRange(0, 1)];
+ if (textEvent != nil)
+ {
+ [[inputView inputContext] handleEvent:textEvent];
+ }
} else {
NSLog(@"Hiding input window.");
[inputWindow orderOut:inputWindow];