Project: titanium
Issue TIMOB-18865: iOS8: Keyboard toolbar not removed when undocking keyboard
h6.Steps to reproduce 1) Run sample on iPad Sim/device and hit "Focus to see keyboard w/ toolbar" 2) Undock Keyboard by clicking the icon at bottom right. 3) Events work as expected 4) Hide keyboard, noticed toolbar remains in the middle of screen. h6.Test Case {code} var win = Ti.UI.createWindow({ //title : _args.title }); win.orientationModes = [Titanium.UI.PORTRAIT, Titanium.UI.UPSIDE_PORTRAIT, Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT]; var flexSpace = Titanium.UI.createButton({ systemButton : Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE }); var tf = Titanium.UI.createTextField({ height : 32, backgroundImage : 'KS_nav_ui.png', width : 200, font : { fontSize : 13 }, color : '#777', paddingLeft : 10, borderStyle : Titanium.UI.INPUT_BORDERSTYLE_NONE }); var camera = Titanium.UI.createButton({ backgroundImage : 'KS_nav_views.png', height : 33, width : 33 }); camera.addEventListener('click', function() { Titanium.UI.createAlertDialog({ title : 'Toolbar', message : 'You clicked camera!' }).show(); }); var send = Titanium.UI.createButton({ backgroundImage : 'KS_nav_ui.png', backgroundSelectedImage : 'KS_nav_views.png', width : 67, height : 32 }); send.addEventListener('click', function() { Titanium.UI.createAlertDialog({ title : 'Toolbar', message : 'You clicked send!' }).show(); }); var textfield = Titanium.UI.createTextField({ color : '#336699', value : 'Focus to see keyboard w/ toolbar', height : 35, width : 300, top : 10, borderStyle : Titanium.UI.INPUT_BORDERSTYLE_ROUNDED, keyboardToolbar : [flexSpace, camera, flexSpace, tf, flexSpace, send, flexSpace], keyboardToolbarColor : '#999', keyboardToolbarHeight : 40 }); var textfield2 = Titanium.UI.createTextField({ color : '#336699', value : 'Focus to see keyboard w/o toolbar', height : 35, width : 300, top : 70, borderStyle : Titanium.UI.INPUT_BORDERSTYLE_ROUNDED }); win.add(textfield); win.add(textfield2); win.open(); {code}
Story points: 13