Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Modifier Keys (Shift and Alt) (Read 634 times)
Harshvir
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 36
Joined: Aug 26th, 2020
Modifier Keys (Shift and Alt)
Mar 8th, 2023 at 6:57am
Print Post  
Hi,
I was trying to find an option.
If we press modifier keys once then they get depressed on pressing any other key.
But
If we press modifier keys twice in quick succession then the keys become sticky keys.
I know I can handle this using KeyPressed events and checking difference between two presses, but I wanted to see if there is build in option to do the same.
AutoReleaseModifierKeys keeps them on all the time if set to false.

Thanks.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Modifier Keys (Shift and Alt)
Reply #1 - Mar 8th, 2023 at 10:00am
Print Post  
Hi,

There's no built-in option for that.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Harshvir
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 36
Joined: Aug 26th, 2020
Re: Modifier Keys (Shift and Alt)
Reply #2 - Mar 11th, 2023 at 2:38am
Print Post  
Thanks for confirming Slavcho.

Quick questions: Keyboard does allow to show both Image and Text on Key?

I tried but I am not able to see both of them.

So wanted to confirm if its allowed or not, or If I am doing something wrong.
I am trying to use stackpanel to add both image and text for key.
Then I created a converter for and checking for Key code to return bitmap for image.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Modifier Keys (Shift and Alt)
Reply #3 - Mar 13th, 2023 at 6:44am
Print Post  
It should be possible via the keys' Xaml template. E.g. in Samples\C#\Styles\ImageKeys.xaml, if you swap positions of the <Image> element with <Grid> just above it, you should see both image and text (otherwise the image is on top and obscures text).

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint