View Single Post
Posts: 435 | Thanked: 769 times | Joined on Apr 2010
#737
I have done a small change to get it more Bluetooth keyboard friendly:

in Conversation.qml, add to the TextArea with chat_text as id:
Code:
Keys.onEscapePressed: platformCloseSoftwareInputPanel()     
            Keys.onReturnPressed: {      
		var toSend = chat_text.text.trim();
                 if ( toSend != "")
                 {
                    sendMessage(user_id,toSend);
                    chat_text.text = "";
                 }
                 chat_text.focus = true;
	    }
In this way pressing esc will close the virtual keyboard, but focus will stay in the text area, meaning full screen conversation. Pressing ctrl+return will send the message aswell.
__________________
My Fremantle projects: InternetRadioPlayer, QRadio, InternetRadioWidget, AutoRemoveSms, PSAutoLock, TodoListWidget, MediaPlayerWidget
My Harmattan projects: InternetRadioPlayer, QMLRadio, SigmaPlayer, WidgetCanvas, NotesExporter, 3DTris, NoStopPlayer, NotesImporter
 

The Following User Says Thank You to gionni88 For This Useful Post: