diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-04-13 13:04:50 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-04-13 20:59:04 +0300 |
commit | 2cca07806251c2085661f4639acfdf085c1984fe (patch) | |
tree | 362ea48f986c83f06a070c63aeef0cf912d7fdc0 /vcl | |
parent | ab49b49f04a3dd9d3a530193798983d540c031d4 (diff) |
Add experimental lo_keyboard_did_hide() implementation
Change-Id: I24a7449848710c0e09a4bf0da0d906d30a59f0bd
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/ios/iosinst.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vcl/ios/iosinst.cxx b/vcl/ios/iosinst.cxx index a0893af2716a..ebf44ac8ec5a 100644 --- a/vcl/ios/iosinst.cxx +++ b/vcl/ios/iosinst.cxx @@ -369,4 +369,19 @@ void lo_tap(int x, int y) } } +extern "C" +void lo_keyboard_did_hide() +{ + // Tell LO it has lost "focus", which will cause it to stop + // displaying any text insertion cursor etc + + SalFrame *pFocus = IosSalInstance::getInstance()->getFocusFrame(); + if (pFocus) { + MouseEvent aEvent; + + aEvent = MouseEvent(Point(0, 0), 0, MOUSE_LEAVEWINDOW, MOUSE_LEFT); + Application::PostMouseEvent(VCLEVENT_WINDOW_MOUSEMOVE, pFocus->GetWindow(), &aEvent); + } +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |