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

FokkeZB/TiSoftKeyboard

 
 

Repository files navigation

TiSoftKeyboard

Built for Titanium SDK Available through gitTio

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!

Installation

You can install this module using gitTio with

gittio install it.smc.softkeyboard

Alternatively you can download a specific release for manual installation.

Example

You can run the example running the following command

gittio demo it.smc.softkeyboard

The source for this demo application can be found in the example folder.

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%