Commit 487478de authored by Jimmy HUGUET's avatar Jimmy HUGUET

8Pen layout first tryable version

parent c41557cf
This diff is collapsed.
......@@ -163,7 +163,7 @@ Item {
}
MouseArea {
enabled: useMouseEvents.value
enabled: useMouseEvents.value && (typeof layout.is8Pen === 'undefined')
anchors.fill: parent
onPressed: keyboard.handlePressed(createPointArray(mouse.x, mouse.y))
......@@ -181,7 +181,7 @@ Item {
MultiPointTouchArea {
anchors.fill: parent
enabled: !useMouseEvents.value
enabled: !useMouseEvents.value || typeof layout.is8Pen !== 'undefined'
onPressed: keyboard.handlePressed(touchPoints)
onUpdated: keyboard.handleUpdated(touchPoints)
......
/*
* Copyright (C) 2013 Jolla ltd and/or its subsidiary(-ies). All rights reserved.
*
* Contact: Pekka Vuorela <pekka.vuorela@jollamobile.com>
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list
* of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
* Neither the name of Nokia Corporation nor the names of its contributors may be
* used to endorse or promote products derived from this software without specific
* prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
import QtQuick 2.0
import com.jolla.keyboard 1.0
Row {
SymbolKey {id: symbol}
BackspaceKey {implicitWidth: symbol.width}
ShiftKey {implicitWidth: symbol.width}
EnterKey {}
}
......@@ -18,6 +18,11 @@ name=English (Ease)
languageCode=EN
handler=Xt9InputHandler.qml
[pen8_en.qml]
name=English (8Pen)
languageCode=EN
handler=Xt9InputHandler.qml
[es.qml]
name=Español
languageCode=ES
......
/*
* Copyright (C) 2012-2013 Jolla ltd and/or its subsidiary(-ies). All rights reserved.
*
* Contact: Pekka Vuorela <pekka.vuorela@jollamobile.com>
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list
* of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
* Neither the name of Jolla Ltd nor the names of its contributors may be
* used to endorse or promote products derived from this software without specific
* prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
import QtQuick 2.0
import ".."
import Sailfish.Silica 1.0
Keyboard8PenLayout {
accentMap: {
"´": {"e": "é", "E": "É", "a": "á", "A": "Á", "o": "ó", "O": "Ó", "i": "í", "I": "Í", "u": "ú", "U": "Ú", "y": "ý", "Y": "Ý" },
"^": {"e": "ê", "E": "Ê", "a": "â", "A": "Â", "o": "ô", "O": "Ô", "i": "î", "I": "Î", "u": "û", "U": "Û" },
"¨": {"e": "ë", "E": "Ë", "a": "ä", "A": "Ä", "o": "ö", "O": "Ö", "i": "ï", "I": "Ï", "u": "ü", "U": "Ü", "y": "ÿ", "Y": "Ϋ" },
"`": {"e": "è", "E": "È", "a": "à", "A": "À", "o": "ò", "O": "Ò", "i": "ì", "I": "Ì", "u": "ù", "U": "Ù" },
"°": { "a": "å", "A": "Å" },
"~": { "a": "ã", "A": "Ã", "o": "õ", "O": "Õ" , "n": "ñ", "N": "Ñ"},
"¸": {"c": "ç", "C": "Ç"}
}
letterCaptions:
{
"up-left": ["s", "d", "g", "#"],
"up-right": ["y", "b", "p", "q"],
"left-up": ["t", "c", "z", "."],
"left-down": ["i", "h", "j", ","],
"right-up": ["a", "r", "x", "?"],
"right-down": ["n", "m", "f", "!"],
"down-left": ["e", "l", "k", "@"],
"down-right": ["o", "u", "v", "w"]
}
numCaption:
{
"up-left": ["0", "8", "<", "£"],
"up-right": ["1", "9", ">", "+"],
"left-up": ["2", "`", "\\", "-"],
"left-down": ["3", "^", "/", "*"],
"right-up": ["4", "{", "\"", "="],
"right-down": ["5", "}", "'", ""],
"down-left": ["6", "[", "~", "|"],
"down-right": ["7", "]", "$", ""]
}
specialCaption:
{
"up-left": ["", "", "", ""],
"up-right": ["°", "~", "", ""],
"left-up": ["", "", "", ""],
"left-down": ["", "", "", ""],
"right-up": ["´", "`", "", ""],
"right-down": ["^", "¨", "", ""],
"down-left": ["", "", "", ""],
"down-right": ["¸", "", "", ""]
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment