Some missing soft keyboard events and features implemented! (iOS only)
Attention: if you want to mimic the interaction of the iMessage compose view, you should have a look at TiDAKeyboardControl which does exactly this!
// Support for ListView, TableView, ScrollViewvarscrollView=Ti.UI.createScrollView({//keyboardDismissMode: 'none' // default//keyboardDismissMode: 'ondrag'keyboardDismissMode: 'interactive'});varsoftkeyboard=require('it.smc.softkeyboard');softkeyboard.addEventListener('keyboardshow',logInfo);softkeyboard.addEventListener('keyboardhide',logInfo);softkeyboard.addEventListener('keyboardchange',logInfo);functionlogInfo(event){Ti.API.error(event.keyboardWidth+'x'+event.keyboardHeight);}Kudos to @funkbit for its initial development of TIKeyboardEvents.
Humbly made by the spry ladies and gents at SMC.
This library, TiSoftKeyboard, is free software ("Licensed Software"); you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; including but not limited to, the implied warranty of MERCHANTABILITY, NONINFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA