Skip to content

TiSoftKeyboard enables some important soft keyboard features currently missing from Titanium SDK (iOS)

License

Notifications You must be signed in to change notification settings

Robbe92/TiSoftKeyboard

 
 

Repository files navigation

TiSoftKeyboard

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!

Keyboard dismiss (iOS 7)

// Support for ListView, TableView, ScrollView

var scrollView = Ti.UI.createScrollView({
	//keyboardDismissMode: 'none' // default
	//keyboardDismissMode: 'ondrag'
	keyboardDismissMode: 'interactive'
});

Events

var softkeyboard = require('it.smc.softkeyboard');

softkeyboard.addEventListener('keyboardshow', logInfo);
softkeyboard.addEventListener('keyboardhide', logInfo);
softkeyboard.addEventListener('keyboardchange', logInfo);

function logInfo(event) {
	Ti.API.error(event.keyboardWidth + 'x' + event.keyboardHeight);
}

Credits

Kudos to @funkbit for its initial development of TIKeyboardEvents.

Humbly made by the spry ladies and gents at SMC.

License

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

About

TiSoftKeyboard enables some important soft keyboard features currently missing from Titanium SDK (iOS)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 56.9%
  • Python 40.1%
  • JavaScript 3.0%