mac magic keyboard on windows in intellij key binding - windows

I have been using intellij on mac for the last 4 years, now using windows temporarily, and expect to return to mac soon.
I bought a magic keyboard for my windows machine so I wouldnt have to (re)learn 2 sets of keyboard shortcuts, and i switched intellij layout to mac default, but this does not work as I expected. The mac keyboard is pretending to be a windows keyboard rather than just being a mac keyboard.
Is there a simple way to tell the magic keyboard to just be a mac keyboard? I want all keyboard shortcuts to be exactly the same.
Ive googled this for a bit but found nothing helpful.
I looked into microsoft keyboard layout creator, but it appears the windows key will always be a windows key, and windows will never see a command or option key. This may be a viable solution, but looks like a time suck, and I'd like to know if anybody has suggestions before I go down this route any further.
Thanks for your help

Try making Windows key to act as Meta:
Press Help | Edit Custom Properties... (if a dialog appears, press "Create")
"idea.properties" file will open. Add keymap.windows.as.meta=true to a new line
Restart IDE

Related

Mac mini can not login

I know this question may asked by many users but all the others answers is not helpfull, not working for me.
I started the Mac mini,
Logone screen appears,
I tried to type the password 3 to 4 times, but unable to login.
Then I use Mac keyboard with otg cable and connect my android phone.
I tried to type the password and most of the key is not working, few working.
Say when I press 'a' works,
Press 'd' not works, nothing display,
Press space , display 'm' and so on.
What can be the issue?
How can I login to Mac if keyboard not working.
Have not enabled the ssh or remot access?
Does regular usb keyboard will work if I purchase a new keyboard? Or have to purchase new Mac keyboard for my Mac mini?
Better solution?
I replace a new windows based keyboard and works as needed.

Vmware installation causing Window 8.1 host applications to open help files randomly

I installed vmware on my Window 8.1 HP Envy x360 PC in early december. Late december I noticed it was difficult using it as help files of any application in use just keeps sprouting up. Even when there are no applications in the window help files window shows up few minutes after a restart.
I tried many suggestions online: removing HP redundant programs, Cleaning the system of malware and spyware, reviewing/disabling accessibility settings, still no luck. I later learnt from someone's comment on one forum that he noticed this happened on his pcs with vmware installedI finally had to display window key since the behaviour was as though the window key was perpetually pressed down such that typing letter "n", "e" or the "delete" key opens the help file of the program in use or those of windows.
Now with window key disabled the situation relatively better as I can read on the pc and do some programming task; but I still get the randow opening of help files when I click "n", "e" or "delete" keys (imagine how difficult it is to type in MSWord under this situation). The exception is that this doesn't occur while using Firefox.
Any idea what's going on?
I discovered the behaviour was a mimicking of window shotcuts involving the window key. So to temporarily solve this (since I didn't want to uninstall vmware) was to disable window key. I found some registry script at http://johnhaller.com/useful-stuff/disable-windows-key which I used.
This helped but when using certain programs (chrome and MSWord) typing any of n, b or delete key launches the help file so I used AutoHotKey - autohotkey.com to write lines of script to disable any SHIFT key shortcut combination

How to add custom keyboard shortcut for terminal in apple macbook pro

I don't think there is any pre-defined keyboard shortcut for opening terminal in macbook pro. I am about to start bash so really need to call up terminal fast. Can't use spotlight every time & then write Terminal their and call it. I just bought mac so i am getting familiar with all the custom keyboard shortcuts. I searched a lot on google but i couldn't find a way to add shortcut. I was using Linux Distro's before. Adding terminal shortcut is pretty easy in linux. In some distro's its predefined with ctrl+T key. Please let me know the easy way. Thanks in advance.
I recommend using iterm2 or total terminal.
You can use control + ' to bring down a terminal whenever you need it.

Chrome Remote Desktop Keyboard Shortcut Needed

I'm using Chrome Remote Desktop on a Windows Desktop to access an Apple iMac. I cannot figure out how to invoke the Apple Command key function from my Windows keyboard. I would think that the Windows key would work but it doesn't. Is there a way to map the Windows key to the Apple Command key? I really want to be able to invoke copy and paste from the keyboard, which are Command-C and Command-V on the iMac, so I'm stuck because I don't have a "Command" key.
My solution to this problem is to leverage the handy "Configure Key Mapping" command provided by the latest version of Chrome Remote Desktop (v. 77.0 at the time of writing). The option is available in the sidebar as shown below.
Clicking the link opens the "Configure Key Mapping" dialog, from which you can create your own mapping. An important thing to note is that the keycodes supported by Chrome Remote Desktop are not the usual "ASCII" codes to which every developer is used to (I did this error myself the first time); rather, the codes should be taken from the "UI Events KeyboardEvent code Values" W3C standard. If you go through the standard you'll find the useful "List of code values for functional keys in the Alphanumeric section" table, which I also replicate below.
Concretely, let's say you want to map your local (Windows) Ctrl key to the remote (Mac) Cmd key. From the table above we see that the code for the (left) Ctrl key is "ControlLeft", while the code for the Cmd key is "MetaLeft", so from the "Configure Key Mappings" dialog:
click "New Mapping"
enter "ControlLeft" in the "from" field
enter "MetaLeft" in the "to" field
if needed, click [New Mapping] to enter more key mappings
the configuration should now look like in the image below. Click [Done] to close the dialog window.
At this point you should be able to use Ctrl-C, Ctrl-V etc. on your local PC to trigger the corresponding Cmd-C, Cmd-V etc. commands in the remote Mac. The solution works quite well for me and it resolves a perennial problem of how to use the Cmd button while on a Windows PC without having to rely on external apps or plugins.
I'm on a Windows 10 machine remoting into an El Capitan Mac (yes, it's an old OS, but it's a 2009 model that can't be upgraded any higher). If the other solutions don't work for you (they didn't for me), you can try adding Mac keyboard shortcuts in Keyboard settings. I use this mac as a home server and only use it via Chrome Remote Desktop, so I am not worried about messing up keyboard shortcuts when using the computer's keyboard directly.
Go to Settings > Keyboard > Shortcuts > App Shortcuts and add new shortcut mappings for Copy and Paste to the Ctrl key.
On Windows 10
Alt + Window + C
Alt + Window + V
On an Acer C7, the right control key maps to command. In fact, the Search key maps to command too, which is far more helpful, but available on fewer keyboards.
Well, it seems I can use the Windows Key to send the CMD Key straight away to the Mac machine. I have tried:
Windows + C: copy
Windows + V: paste
Windows + X: Cut
Windows + W: close window
Windows + Q: close application
All work nice!
However you can't use this:
Windows + Tab: switch between applications,
it is already used by Windows for the same function.
But you can still use "holding the mouse middle wheel and moving the mouse up" to see all open applications. It is a little bit painful, but does most jobs.
If things don't work - try map MetaRight to ControlLeft
I have windows keyboard connected to a mapbook. I had to swap the modifier keys: Command <-> Control.
The problem was that when connecting with the Chrome Remote Desktop to a Linux machine, the remapping MetaLeft to ControlLeft did not work. Turned out it's because the macbook remapped the left key to the MetaRight what whatever reason.
I have confirmed, using chrome remote desktop, that search+another_key does the same as CMD+another_key while remote-connected to my mac-book pro over home WiFi. I also noted that if I want to enter two search+another_key presses sequentially, I must release and repress the search key after each instance
You can map keybindings, just not that im on a mac remoting to a windows PC (with a windows keyboard) and I noticed that MetaRight is the windows key (as oppose to Meta left).
If you want to use e.g. WIN-key + C to represent Cmd + C on mac, other than "Configure key mappings" (WIN-key seems mean Cmd on mac by default?), you need to go to full-screen checkbox by the right-side's blue-sliding bar (F11 doesn't work for me).
Only in that full-screen mode, WIN-key + something is not occupied by the Windows OS.
Go Full-Screen first
In order to use all shortcut keys, you need to go full screen from the Windows PC that is accessing the Mac. This option can be found in the side menu on the right.
Then use the ⊞ Win key for all the ⌘ Cmd key shortcut keys on Mac

Synergy between mac and pc change mac hotkeys

Synergy is a program that enables you to use the same mouse and keyboard in two computers. I have a PC and mac connected directly with an Ethernet cable therefore the connection is great and it seems as if there is only one computer.
I am developing an iPad application and the only software that I have found that supports iwebkit for CSS is Expresso. I use that to edit my CSS files in the mac and I use dream weaver on my PC to edit PHP, HTML and JavaScript files. The only problem is that I am constantly using both computers to develop the application and its very frustrating using different shortcut keys for each computer. It would be very nice if I could use the same hot-keys on both computers.
So far I have tried:
Changing the modifier keys in the keyboard section under system preferences in the mac. That works but just with the keyboard from the mac not with the keyboard that I am using with synergy that controls both computers.
Creating applescripts that what they do is to send a shortcut key then compiling them and saving them as an application. After they are saved as an application I go to system preferences and try to run them with a different shortcut key. when I create that shortcut key system preferences crashes and closes without saving the changes.
Creating shortcut keys in synergy which it works but only in one computer. Synergy will always send the same keystroke regardless on which computer you are using.
Lastly I have tried looking for "IronAHK" which in a lot of posts people say it modifies the mac hotkeys but I have not been able to find it for the mac.
Is there a way to have the same universal access keys across my machines?
THe following article was very helpful for me (working from a Mac, controlling a PC):
http://www.nextofwindows.com/how-to-properly-map-keyboard-between-mac-and-pc-when-share-mouses-with-synergy/
Step 1: Configure Server
Step 2: Double-click on the PC (or Mac if the Server is a PC)
Step 3: Toggle the key Ctrl and Super to mirror each other
When adding a new computer in synergy you can change command and control keys. Here is an example in windows. I was not able to find it because synergy place this in a location where I never thought I could find it.
Now I can use control + c to copy files both in the mac and in the pc and most of the command such as control + a to select everything etc. To fix the other issues so that I can use 'home' to go to the beginning of the line for example I use the program provided by Evan Moran which was the first answer in this post.
For the mac I use KeyRemap4MacBook. It is pretty good for being free.
That said, consider using different source editors so that you can code only on one system. This will make your life a ton easier. Dreamweaver is not necessarily the best. Visual Studio is pretty good on Javascript, CSS, and HTML, and their express versions are free.
If all you need is syntax highlighting EditPlus is great on the PC and will work on all languages you mentioned. If you need to stay on a mac then TextWrangler is great as a basic source editor. Both have free trials. Good luck!

Resources