How to show Touch Keyboard when mouse is connected? - windows

When I have my bluetooth mouse connected to my Windows 10 Surface 3, the Touch Keyboard does not appear if I click into a textbox with the mouse. The keyboard only comes up if I tap the screen (the textbox) with my finger. I just want to use the tablet with a mouse and the Touch Keyboard.
So my question is: how can I make the Touch Keyboard come up when I click a textbox with my mouse, WITHOUT having to tap the box?
Thanks a lot!

You will have to do that manually. Check the code example in this answer: https://stackoverflow.com/a/40921638/332528

Related

Detect a palm hold on touchscreen

I'm developing a touchscreen kiosk and need to know when the user is pressing their whole hand on the screen. The touchscreen I have seems to only have 5 touch points so need to find a solution to manage what happens when they also put their palm against the screen.
I'm using a combination or press and pan events to detect all the fingers touching, but when the palm is put onto the screen the mouseup event is fired within the pan gesture.
Any suggestions?

Windows Phone 8: Display on screen softkeyboard after pressing a button on screen in WP8

I am implementing search functionality on a given list,and the requirement is: right at the moment while search button is pressed the search textbox will be focused and the onscreen softkeyboard will be available. Creating focus is easy but Any idea guys how could display the onscreen keybard?
I am not aware of any way to control the onscreen keyboard. I think the only way it is displayed is when the user clicks on control like a textbox

When does the touch keyboard popup?

I'm working on a non-touch device (regular PC...) with a keyboard. I've written a Windows 8 App, which includes TextBox.
I want to launch the Touch Keyboard, when the user uses a device without a keyboard (=Tablet/Phone). How can I test it?
I.e. when I use the Visual Studio simulator for Windows 8 and choose "taps" as the gesture, the virtual touch keyboard still won't popup. Is there any specific moment where Windows is using the keyboard automatically? I'd actually like to test the Touch Keyboard to check the InputScope (i.e. InputScope="Number") and the 'look of the app', when the keyboard pops up.
If needed, my TextBox looks like this:
<TextBox InputScope="Number"/>
Edit: The keyboard pops up now (I don't know why...). I've started the simulator and used "taps" as gesture and the keyboard didn't pop up. After restarting the simulator ~5 times, it pops up now, but the InputScope is not Number...
Visual Studio 2012 comes with a Simulator that you can run your Windows 8 app in. On the right of that, you may notice buttons near the top, one that's a pointer and another that's a finger. If you use the finger, then all input will be touch input, as if there were no keyboard.

Programmatically disable Keyboard & Mouse

Is there a way to disable keyboard & mouse?
Ideally I'm looking for a solution whereby I could completely disable mouse and almost disable the keyboard - bar one key combination, for example Ctrl+A. So, once Ctrl+A is pressed - the PC will go to a mute stage (no mouse/keyboard) until Ctrl+A is pressed again.
have a look at "BlockInput Function"
refer MSDN

Detect that the onscreen keyboard has been displayed on Windows Phone 7

Simple question:
How do I detect that the onscreen keyboard has been displayed on windows mobile 7? Is there an event I can add a listener to?
It takes up about half the screen and I want to scroll the view up when it gets displayed...
EDIT:
A comment below indicates more clearly what I'm trying to do: I have a textbox input, and as the user types into it an autocomplete dropdown appears below it (like google suggest). By default, the active control (the textbox) scrolls into view when focussed, and the onscreen keyboard is directly below it. The onscreen keyboard appears in front of my autocomplete dropdown - what I want to do is make the screen scroll a little further up, so there's some room for my dropdown to be shown.
The windows phone UI design guidelines say: "When the keyboard is deployed, the application should scroll to ensure the active edit control and the caret are in view". This happens fine, it's just the non-active dropdown gets hidden behind the onscreen keyboard.
The guidelines also say that an application can choose to show the onscreen keyboard, and can also choose to close it.
At the moment i'm stuck, and I don't think (based on my research and the replies to this question) that it's possible to detect that the onscreen keyboard has been displayed. I'm moving my investigation to see if it's possible to determine the "visible area" of the page (width & height in pixels for example), and combine this with an onfocus for the textbox... not sure if this will prove fruitful though.
Detecting when the virtual keyboard is displayed won't be possible in 7.0, as confirmed by Microsoft's Peter Torr in the WP7 forum on MSDN.
Maybe, as a dirty workaround, you could detect when the position of your text box (or its parent scroll viewer's offset) has changed, as this would indicate that the virtual keyboard has appeared or disappeared.
You can listen to the TextBox.GotFocus and TextBox.LostFocus events to detect when a text box in your application acquires and looses focus.
If an editable element gets focus then the framework will automatically scroll the element into view. So you really shouldn't have to do anything.

Resources