blob: 8743fa054ce88f9301a1ecc692155ff21d9a45f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Tango.Touch.Keyboard;
namespace Tango.PPC.Browser.BoundsObjects
{
public class MainBound
{
public void openKeyboard(String inputType)
{
Application.Current.Dispatcher.BeginInvoke(new Action(() =>
{
switch (inputType)
{
case "search":
KeyboardView.Keyboard.ActionKeyMode = KeyboardActionKeyMode.Go;
break;
default:
KeyboardView.Keyboard.ActionKeyMode = KeyboardActionKeyMode.Next;
break;
}
KeyboardView.Default.IsOpened = true;
}));
}
public void closeKeyboard()
{
Application.Current.Dispatcher.BeginInvoke(new Action(() =>
{
KeyboardView.Default.IsOpened = false;
}));
}
}
}
|