I would like to disable Alt & Application key in windows10 by editing registry key. I found this procedure:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control
and click on Keyboard Layout
on Edit menu click Add value
type in Sancode Map,
click REG_BINARY as the Data Type and than click OK
insert 00000000000000000300000000005BE000005CE000000000
save & restart
as above is for Win keys i wanted to change it for Alt & Application key
codes for Win keys are:
Left Win key -> 0x5B
Right Win key -> 0x5C
codes for Alt & Application keys are:
Application key -> 0x5D
Alt key -> 0x12
so i changed value from:
00000000000000000300000000005BE000005CE000000000
to:
00000000000000000300000000005DE0000012E000000000
...but i doesn't work.
Any suggestions? I suspect value might be wrong but not sure how to validate.
Ok, so
procedure works (verified for Win10 IOT Enterprise 2015 LTSB)
problem was with incorrect mapping for desired keys
with help from #Ilnspectable I found correct mapping which is for Alt & Application keys: 38 & E0_5D respectively
correct value should be:
00,00,00,00,00,00,00,00,03,00,00,00,00,00,5D,E0,00,00,38,00,00,00,00,00
Note that in Windows they using byte format called little-endian (multi byte values are stored in memory from lowest values).
logic explained here
Related
What is my issue:
- right now I'm using keyboard layout Polish - Programmer and when i click a key right to 0 ) i get - (minus) and _ (when with Shift)
What I would like to have:
- pressing key next to 0 ) should put _ and - (with Shift)
I tried the app Sharp Keys but with that I'm able only to swap the key with other one, not to change the 'shift behavior' for that specific key.
Could any one assist me with that please?
Solution for this was to install Microsoft Keyboard Layout Creator
Then to modify selected Keyboard layout and switch these characters.
I am using dell inspiron 5000 series laptop. It was very hard to press the f10,f11 keys by pressing the fn key every time while debugging. Can you please give me the solution how can I be able to access directly the function keys without pressing fn key.
Although this is for a different version of Dell Laptop it took me ages to find the solution so thought I would share, as this post came up high on my google search.
On my laptop XPS 15 9550 I had to press the fn key and the f key for example to refresh a page was fn + F5. Annoying.. to rectify the problem I looked in the BIOS as explained on this post but the option did not exist.
SOLUTION
Instead I needed to press "Fn + Esc" this locks the function key. now pressing F5 refreshed the screen
Yes this is a Bios setting, but you can simply toggle between them using FN + ESC!
So in your case, hit FN+ESC once :)
"Fn" key is by default enabled in Dell laptops, you can disable Fn through BIOS setup. For this, reboot/restart you system and when DELL symbol shows, press F2 to enter into BIOS setup, select "POST Behaviour" ==> "Fn Lock Options". On the right side screen select "Lock Mode Disable/Standard". It will disbale the "Fn" key and it won't interrupt while debugging.
From the menu go to Tools -> Options -> Environment -> Keyboard. The right hand side will have a long list of commands (e.g. "Debug.StepOver") and fields for adding your own custom shortcuts.
Also I don't know about the Dell Inspiron but on my Surface Pro I can press Caps-Fn to keep it permanently on, so you might want to try that. I believe some laptops support it in the BIOS, so check there as well. Finally this link suggests that the Dell extensions to the Mobility Center allow you to change the behaviour there.
Firstly check whether your key board has "FnLock" key. It's usually with the "Esc" key. If you have ,great you don't need BIOS setup, follow the below steps-
Tap and hold the Fn key on your keyboard.
While holding the Fn key, tap the Fn lock key(Esc key) and then release both keys.
Done, now check f10, f11 for debugging or f5 for refresh , it will work , no need to do fn+f5.
To unlock the Function keys again, hold down the Fn key and hit fnlock/Esc together.
The answer to your question would be in link below. You need to disable fn in bios.
http://windowssecrets.com/forums/showthread.php/134495-Cant-use-my-F-keys-without-pressing-fn
It worked for DELLL lattitude 5410 :
use fn key + escape key to toggle on/off function key lock.
I want to set the Key Equivalent on an NSMenuItem to be the number pad's Enter key. I don't have a 10-key number pad on my desktop, but I was told that Function+Return on the main keyboard would emulate the Number Pad Enter key. However, when I try to do that in Interface Builder in the Key Equivalent field, my cursor just jumps to the next field.
How can I set, in Interface Builder, the number pad's Enter key to the Key Equivalent on an NSMenuItem?
If you'd like to provide the programmatic way to do it in the comments, that's fine and appreciated, but for full Answers to this question, please restrict them to doing it in Interface Builder.
It turns out that using Function+Return on my normal keyboard DID work to put the Keypad Enter key as the key equivalent. I went and got an extended physical keyboard that had a keypad. When I hit the Keypad Enter key in the Key Equivalent field, I got the same behavior I got when I hit the Function+Return. I tested it within the app and using Function+Return to set the key equivalent DID successfully bind that Menu Item to the Keypad Enter key... it's just that Xcode didn't SHOW that any key was really bound.
Goal: I want to use the function indent-region with the default shortcut C-M-\.
Problem: I use a German keyboard layout. To insert "\" I have to type either C-M-ß or AltGr-ß, because the "ß" is overloaded with "?" and "\" (see: QWERTZ layout in the upper right corner).
Question: Is it possible to to input the shortcut C-M-\ without tweaking emacs or the OS on a German keyboard?
If it is not I would just change the shortcut to something easily accessible. The main reason I want this to work is that it works out of the box on a default emacs installation.
I've experienced this problem and found the following info helpful from the "Alt Gr Key" page on emacswiki.org:-
Emacs keys may seem to be “hidden” (perhaps only) on MS Windows because AltGr + LeftControl + key is just AltGr + key.
Solution 1: Using the Right Control
But you can type those keys even on MS Windows! The trick is that you must type AltGr as the first key, and Ctrl must be the right control key, not the left one.
After experimenting on a German keyboard, I can execute C-M-\ like: AltGr+RCtrl+M+\, where RCtrl is my right-Ctrl key, M is my left/only Alt key and \ is my ß?\ key. (The value of w32-alt-is-meta is t.)
This key-chord is cumbersome so perhaps it's better to define the C-M-ß combination as suggested by #OlegPavliv.
Add the following to your .emacs
(define-key (current-global-map) (kbd "C-M-ß") 'indent-region)
This way it will indent the region on C-M-ß
Press C-M.
Release.
Press AltGr-ß to produce \
Works for me. Where is the problem?
I use my command keys as extra control keys on Mac OS X (and I believe the space cadet keyboards had this configuration). I want to emulate this on my Windows machines by switching Alt to Ctrl and the Windows key to Alt within Emacs. Is this possible? I found this post which suggests something like
(setq w32-pass-lwindow-to-system nil
w32-pass-rwindow-to-system nil
w32-pass-apps-to-system nil
w32-lwindow-modifier 'super ;; Left Windows key
w32-rwindow-modifier 'super ;; Right Windows key
w32-apps-modifier 'hyper) ;; Menu key
to get super and hyper keys upon pressing the windows key. When I try to remap this to 'control to test it out (but eventually I want it to be meta and Alt as Ctrl, as mentioned), windows-e still gets intercepted by Windows (XP) and opens Explorer, but seems like a good place to start? I would appreciate any suggestions.
From the documentation for w32-pass-lwindow-to-system:
Note that some combinations of the left "Windows" key with other keys are
caught by Windows at low level, and so binding them in Emacs will have no
effect. For example, <lwindow>-r always pops up the Windows Run dialog,
<lwindow>-<Pause> pops up the "System Properties" dialog, etc. However, see
the doc string of `w32-phantom-key-code'.
From the documentation for w32-phantom-key-code:
Virtual key code used to generate "phantom" key presses.
Value is a number between 0 and 255.
Phantom key presses are generated in order to stop the system from
acting on "Windows" key events when `w32-pass-lwindow-to-system' or
`w32-pass-rwindow-to-system' is nil.
And as it also says on Xah's website:
There's no way around that unless you use other tools such as AutoHotkey. Even so, it may not be possible to disable 【Win+l】 (lock window) and 【Win+u】 (easy access).
So it seems that if it doesn't work with the method he describes (which seems right), you should look into AutoHotKey.