Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Num lock on by default (Read 2494 times)
ruki
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 12
Joined: Oct 5th, 2023
Num lock on by default
Oct 9th, 2023 at 4:10am
Print Post  
How can I have Num lock to be on by default?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3223
Joined: Oct 19th, 2005
Re: Num lock on by default
Reply #1 - Oct 9th, 2023 at 9:45am
Print Post  
You could simulate a numlock press:

Code
Select All
if (!VirtualKeyboard.NumLocked)
	keyboard.SendKey(MindFusion.UI.Wpf.Key.NumLock); 



or if you don't want to use numpad keys as arrows at all, use UnicodeKey instead of NumPadKey in custom layout.

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


I Love MindFusion!

Posts: 12
Joined: Oct 5th, 2023
Re: Num lock on by default
Reply #2 - May 28th, 2024 at 6:47am
Print Post  
How to make caps locked on and remove the capbuttons and also make the UI reflect the caps lock is on. This works but doesn't reflect the UI.

            if (!VirtualKeyboard.CapsLocked)
            {
                SendKey(MindFusion.UI.Wpf.Key.CapsLock);
            }

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


tech.support

Posts: 3223
Joined: Oct 19th, 2005
Re: Num lock on by default
Reply #3 - May 28th, 2024 at 7:27am
Print Post  
What do you mean by reflecting the UI? If you want keys to display only uppercase letters instead of default lower + upper case, you will have to apply a custom template as in:

https://mindfusion.eu/Forum/YaBB.pl?num=1478183033/1#1

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