[TIMOB-1235] iOS: Missing KeyboardWillShow / KeyboardWillHide events
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-06-08T12:34:12.000+0000 |
Affected Version/s | Release 1.5.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | api |
Reporter | Ralf Pfeiffer |
Assignee | Neeraj Gupta |
Created | 2011-04-15T02:47:21.000+0000 |
Updated | 2017-03-09T21:29:15.000+0000 |
Description
I need a simple way to know when the keyboard will show or hide so that I can move my layout around.
Proposed usage:
Ti.App.addEventListener('keyboard-will-show', function(e){
if (e.source == myTextView) doSomething();
else if (e.source == myOtherTextView) doSomethingElse();
});
Ti.App.addEventListener('keyboard-will-hide', function(e){
if (e.source == myTextView) doSomething();
else if (e.source == myOtherTextView) doSomethingElse();
});
i can haz?
Curiously, still doesn't exist even after the keyboard updates.
Taken care of by [TIMOB-7724]: Ti.App.addEventListener('keyboardFrameChanged, ...);
Duplicate of TIMOB-7724.
Closing ticket as duplicate.