const char* QQnxVirtualKeyboardPps::enterKeyTypeStr() const
{
    switch (enterKeyType()) {
    case DefaultReturn:
        return "enter.default";
    case Connect:
        return "enter.connect";
    case Done:
        return "enter.done";
    case Go:
        return "enter.go";
    case Join:
        return "enter.join";
    case Next:
        return "enter.next";
    case Search:
        return "enter.search";
    case Send:
        return "enter.send";
    case Submit:
        return "enter.submit";
    }

    return "";
}
virtualkeyboard_enter_t QQnxVirtualKeyboardBps::enterKey() const
{
    switch (enterKeyType()) {
    case Connect:
        return VIRTUALKEYBOARD_ENTER_CONNECT;
    case Done:
        return VIRTUALKEYBOARD_ENTER_DONE;
    case Go:
        return VIRTUALKEYBOARD_ENTER_GO;
    case Join:
        return VIRTUALKEYBOARD_ENTER_JOIN;
    case Next:
        return VIRTUALKEYBOARD_ENTER_NEXT;
    case Search:
        return VIRTUALKEYBOARD_ENTER_SEARCH;
    case Send:
        return VIRTUALKEYBOARD_ENTER_SEND;
    case Submit:
        return VIRTUALKEYBOARD_ENTER_SUBMIT;
    case Default: // fall through
    default:
        return VIRTUALKEYBOARD_ENTER_DEFAULT;
    }

    return VIRTUALKEYBOARD_ENTER_DEFAULT;
}
void QQnxVirtualKeyboardBps::applyKeyboardOptions()
{
    virtualkeyboard_layout_t layout = keyboardLayout();
    virtualkeyboard_enter_t enter = enterKey();

    qVirtualKeyboardDebug() << "mode=" << keyboardMode() << "enterKey=" << enterKeyType();

    virtualkeyboard_change_options(layout, enter);
}