- Windows Keyboard Equivalents for the Mac’s Special Keys
- Yes, you can keep that Windows keyboard you love so much
- Windows and Mac Keyboard Differences
- The Command and Option Key Swap
- How to Reassign Key Locations on a Mac
- Keyboard Shortcuts
- How to Use a Windows PC Keyboard on Mac by Remapping Command & Option Keys
- Using a Windows PC Keyboard on Mac with Remapped Windows & ALT Keys
- Как настроить и пользоваться Windows-клавиатурой на Mac
- Как использовать с Mac ПК-клавиатуру с переназначенными клавишами Windows и ALT
- ascendbruce / README.md
- This comment has been minimized.
- Veronika-Kot commented Sep 21, 2018
- This comment has been minimized.
- dorlyneto commented Jan 14, 2019
- This comment has been minimized.
- edoardoc commented Jun 28, 2020
- This comment has been minimized.
- DannyDannyDanny commented Feb 15, 2021
- This comment has been minimized.
- ascendbruce commented Feb 16, 2021
- This comment has been minimized.
- DannyDannyDanny commented Feb 16, 2021
- This comment has been minimized.
- Aghyads commented Apr 17, 2021
- This comment has been minimized.
- ascendbruce commented Apr 19, 2021 •
- This comment has been minimized.
- tornikenats commented Apr 19, 2021
- This comment has been minimized.
- ascendbruce commented Apr 20, 2021
- This comment has been minimized.
- tornikenats commented Apr 20, 2021
- This comment has been minimized.
- Aghyads commented Apr 27, 2021
Windows Keyboard Equivalents for the Mac’s Special Keys
Yes, you can keep that Windows keyboard you love so much
Newcomers and old pros alike use Windows keyboards with Macs. Why toss a perfectly good keyboard just because you switched platforms? Some people just prefer how the keys feel to the ones Apple supplies. Any wired USB keyboard or Bluetooth-based wireless keyboard will work fine with a Mac.
In fact, Apple even sells the Mac Mini without a keyboard or mouse. There’s just one little problem with using a non-Apple keyboard: figuring out some of the keyboard equivalents.
Windows and Mac Keyboard Differences
At least five keys have different names or symbols on a Windows keyboard than they do on a Mac keyboard, which can make it difficult to follow Mac-related instructions. For example, a software manual may tell you to hold down the command key ( ⌘ ), which appears to be missing from your Windows keyboard. It’s there; it just looks a little different.
Here are the five most commonly used special keys on a Mac and their Windows keyboard equivalents.
Mac Key
Windows Key
Use these to control various Mac functions, including using Mac OS X startup shortcuts.
Another helpful bit of information for new Mac users is to know which menu key symbols correspond to which keys on the keyboard. The symbols used in the Mac menus can be a bit strange to those new to the Mac, as well as old hands who may be more mousers than keyboard users.
The Command and Option Key Swap
Besides Windows and Mac keyboards having slightly different names, they also swap the positions of two often-used modifier keys: the Command and Option keys.
If you’re a long-time Mac user transitioning to a Windows keyboard, the Windows key, which is equivalent to the Mac’s Command key, may occupy the physical position of the Option key on a Mac keyboard. Likewise, the Windows keyboard’s Alt key is where you expect to find the Mac’s Command key. If you’re used to using the modifier keys from your old Mac keyboard, you’re likely to run into trouble for a while as you relearn the key locations.
How to Reassign Key Locations on a Mac
Instead of having to relearn key locations, use the Keyboard pane in System Preferences to reassign the modifier keys.
Launch System Preferences by clicking its icon in the Dock, or clicking the Apple menu on the left side of the menu bar then selecting System Preferences.
In the System Preferences window that opens, select the Keyboard preference pane.
Click the Modifier Keys button.
Use the pop-up menu next to the Option and Command keys to select the action you wish the modifier keys to perform. In this example, you want the Option key (the Alt key on a Windows keyboard) to execute the Command action, and the Command key (the Windows key on a Windows keyboard) to perform the Option action.
Don’t worry if this sounds a bit confusing, it will make more sense when you see the drop-down pane in front of you. Also, if things get a bit mixed up, click the Restore Defaults button to put everything back the way it was.
Make your changes and click the OK button, then close System Preferences.
With the modifier keys remapped, you shouldn’t have any problems using any Windows keyboard with your Mac.
Keyboard Shortcuts
People new to the Mac but proficient using keyboard shortcuts to speed up their workflow may be a little taken aback by the notation used in the Mac’s menu system to indicate when a keyboard shortcut is available.
If a keyboard shortcut is available for a menu item, the shortcut will be displayed next to the menu item using the following notation:
Источник
How to Use a Windows PC Keyboard on Mac by Remapping Command & Option Keys
Macs can use nearly all keyboards built for Windows PC, whether they are USB or Bluetooth, but you may notice that the layout of some of the modifier keys are different on a Mac keyboard from the layout of a Windows keyboard. Specifically, the WINDOWS and ALT key of a Windows keyboard are switched compared to the Mac keyboard layout of OPTION/ALT and COMMAND keys. This can lead to erroneous keyboard shortcuts or other unexpected key press behavior when using a PC keyboard with a Mac.
A simple solution to this problem is to remap the Windows and ALT key and the command and option/alt keys on the Windows PC keyboard connected to the Mac, so that the keyboard layouts will mimic expectations based on the standard Apple modifier key layout, rather than what it says on the PC keyboard. For most Mac users who connect a PC keyboard to their Mac, this will dramatically improve their typing experience when using a PC keyboard.
Using a Windows PC Keyboard on Mac with Remapped Windows & ALT Keys
This trick works the same with all Windows and PC keyboard with the standard CTRL / Windows / ALT key layout, and all versions of Mac OS:
- Connect the Windows PC keyboard to the Mac as usual, either by USB or Bluetooth
- Pull down the Apple menu and choose “System Preferences”
- Click on “Keyboard”
- Choose the “Keyboard” tab and then click on the “Modifier Keys” button in the lower right corner of the preference panel
- Choose the PC keyboard from the “Select Keyboard” dropdown menu at the top of the Modifier keys screen to insure you are modifying the proper keyboard connected to the Mac
Once finished you will have a new digital layout of the Windows PC keyboard keys when used on the Mac:
- WINDOWS key becomes the ALT / OPTION key on Mac OS
- ALT key becomes the COMMAND key on Mac OS
* NOTE: Some PC keyboards also have the “CNTRL” and “ALT” keys switched too, compared to a standard Mac key layout. If applicable, go ahead and switch those with the same Modifier Key trick outlined above.
A simple way to confirm the keyboard modifier keys are switched as expected is to issue a keyboard shortcut, like a screen capture (Command Shift 3) or a Close Window command (Command + W). It should work as you’d expect based on the Mac keyboard layout.
Obviously this isn’t going to change the actual physical keyboard appearance, so you’ll have to get used to the appearance of the keys saying one thing, but doing something else. But if you are mostly a touch-typer and never look at your hands when typing this shouldn’t be an issue.
Essentially you are reversing the Windows PC keyboard Windows and ALT keys (which become the Command and Option/ALT keys when connected to the Mac), which puts them in line with the default Mac and Apple keyboard layout of those buttons. Thus, the Windows PC keyboard Windows key becomes the new ALT / OPTION key on the Mac, and the Windows PC keyboard ALT key becomes the new COMMAND key on the Mac, just like it would be on an Apple keyboard.
For example, here’s a Windows PC keyboard with a different modifier key layout than the Apple keyboard layout:
And here’s a Apple keyboard with different modifier key layout than the Windows PC keyboard:
Thus you can see why switching the modifier key behavior when the PC keyboard is connected to the Mac can be helpful.
This trick should be particularly useful to Mac users who have a favorite PC keyboard laying around they want to use, or perhaps prefer a particular Windows PC keyboard for one reason or another. And yes this tip works the same regardless of the Windows PC keyboard connected to the Mac, and regardless of the Mac operating system or the Mac itself. You can switch the modifier keys in any release and with any keyboard this way.
By the way if you’re coming to the Mac from the Windows world, which is perhaps why you have a Windows PC keyboard in use on a Mac in the first place, you’ll probably appreciate learning the Home and END button equivalents on a Mac keyboard, what the Print Screen button equivalent is on a Mac, potentially using the Delete key as a Forward DEL on a Mac, or discovering how to use Page Up and Page Down on a Mac keyboard, and understanding what and where the OPTION or ALT key is on a Mac too.
So, try this out if you have a Windows keyboard you want to use with a Mac, or if you want to try an external PC keyboard on a Mac then go ahead and don’t be shy, because simply swapping those two modifier keys can remedy one of the biggest annoyances when using a Windows PC keyboard on a Mac.
If you have any other helpful tips for using a Windows or PC keyboard on a Mac, then share them with us in the comments below!
Источник
Как настроить и пользоваться Windows-клавиатурой на Mac
С компьютерами Mac можно использовать практически любую клавиатуру, предназначенную для ПК под управлением Windows, будь то USB- или Bluetooth-клавиатура. Правда, клавиши модификации на клавиатурах для Mac и ПК отличаются. Это может привести к ошибочным сочетаниям клавиш или другим непредвиденным нажатиям клавиш при использовании ПК-клавиатуры с Mac.
Проблему можно легко решить, переназначив клавиши Windows и ALT на ⌘Cmd и ⌥Option (Alt) на подключенной к «Маку» клавиатуре для ПК. В таком случае вы сможете использовать привычные сочетания клавиш, характерные для стандартной клавиатуры Apple. Многим пользователям Mac, вынужденным работать с ПК-клавиатурой, это по-настоящему облегчит жизнь.
Как использовать с Mac ПК-клавиатуру с переназначенными клавишами Windows и ALT
Нижеописанный способ работает со всеми ПК-клавиатурами со стандартной раскладкой CTRL / Windows / ALT и всеми версиями macOS.
1. Подключите ПК-клавиатуру к Mac через USB или Bluetooth, как вы обычно это делаете;
2. Откройте меню Apple и выберите «Системные настройки»;
3. Кликните на «Клавиатура»;
4. Выберите вкладку «Клавиатура» и кликните на опцию «Клавиши модификации» в правом нижнем углу панели настроек;
5. В меню «Выберите клавиатуру» укажите нужную ПК-клавиатуру;
6. Откройте меню клавиши ⌥Option (Alt) и выберите ⌘Cmd;
7. Откройте меню клавиши ⌘Cmd и выберите ⌥Option (Alt);
8. Нажмите на OK.
9. Когда вы проделаете все вышеописанное, при подключении к Mac клавиша WINDOWS на вашей ПК-клавиатуре станет ⌥Option (Alt), а ALT станет ⌘Cmd.
Имейте в виду, что на некоторых клавиатурах для ПК под управлением Windows функции клавиш CTRL и ALT также отличаются от клавиш на Mac. К счастью, их можно переназначить с помощью вышеописанного способа.
Для того чтобы проверить, удалось ли переназначить клавиши, попробуйте использовать привычные сочетания клавиш. К примеру, сделайте скриншот (⌘Cmd + ⇧Shift + 3) или закройте окно (⌘Cmd + W). Конечно, сами клавиши никуда с клавиатуры не денутся и сохранят прежние названия, однако они будут выполнять новые заданные вами функции. Тех, кто привык к «слепому набору», этот факт смущать не должен.
Ниже представлен пример ПК-клавиатуры. Как видно, клавиши модификации на ней отличаются от привычных для пользователей Mac.
А вот клавиатура для компьютеров Apple.
Если сравнить оба снимка, становится понятно, почему стоит переназначить клавиши на ПК-клавиатуре, если вы используете ее с Mac.
Вышеописанный способ пригодится тем, кто выбрал себе для работы отличную ПК-клавиатуру, но привык работать с Mac. Как уже упоминалось, он подходит для всех клавиатур и всех macOS.
Источник
ascendbruce / README.md
Use (most) macOS style keyboard shortcuts on Windows
Make Windows PC’s shortcut act like macOS (Mac OS X)
With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, . ) on Windows with a standard PC keyboard.
- you shouldn’t change the modifier keys mapping with keyboard DIP. This script assumes you use a standard PC keyboard layout, and wish to use shortcuts as if it was a mac keyboard layout.
- To use cmd + shift + ↑ / ↓ / ← / → (select text between cursor and top / bottom / beginning of line / end of line), You should disable the Between input languages shotcut from Control Panel\Clock, Language, and Region\Language\Advanced settings > Change lanugage bar hot keys due to conflicting.
- Some Windows built-in keyboard shortcuts will be overridden. For example: win + ↑ / ↓ / ← / → (snap window to side). Change mac.ahk accordingly if you prefer to keep the default behavior.
Here’s some examples of how this script work:
you want to press | what you’re actually pressing | AutoHotKey tells Windows |
---|---|---|
cmd + c | alt + c | ctrl + c |
cmd + v | alt + v | ctrl + v |
cmd + r | alt + r | F5 |
cmd + ↑ | alt + ↑ | Home |
cmd + shift + [ | alt + shift + [ | ctrl + shift + Tab |
. | . | . |
To Run Once (until reboot)
- Install https://www.autohotkey.com/
- Copy and save the content of mac.ahk in a text file, named as mac.ahk
- Double click on mac.ahk file
Auto start after Windows startup
Place mac.ahk file (or make a shortcut) at C:\Users\ \AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. |
; #Warn ; Enable warnings to assist with detecting common errors. |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. |
SetWorkingDir % A_ScriptDir % ; Ensures a consistent starting directory. |
; Docs: |
; https://autohotkey.com/docs/Hotkeys.htm |
; https://autohotkey.com/docs/KeyList.htm |
; Ref https://autohotkey.com/board/topic/60675-osx-style-command-keys-in-windows/ |
; You need to disable «Between input languages» shotcut from Control Panel\Clock, Language, and Region\Language\Advanced settings > Change lanugage bar hot keys |
; Universal shotcuts |
$!x :: Send ^ x |
$!c :: Send ^ c |
$!v :: Send ^ v |
$!s :: Send ^ s |
$!a :: Send ^ a |
$!z :: Send ^ z |
$!+z :: Send ^ y |
$!w :: Send ^ w |
$!f :: Send ^ f |
$!n :: Send ^ n |
$!q :: Send ! |
$!r :: Send ^ |
$!m :: Send < LWin Down > |
$!` :: Send < Alt Down > < Shift Down > |
; Quick Switch Tab shotcuts |
$!1 :: Send ^ 1 |
$!2 :: Send ^ 2 |
$!3 :: Send ^ 3 |
$!4 :: Send ^ 4 |
$!5 :: Send ^ 5 |
$!6 :: Send ^ 6 |
$!7 :: Send ^ 7 |
$!8 :: Send ^ 8 |
$!9 :: Send ^ 9 |
$!0 :: Send ^ 0 |
; Chrome shotcuts |
$!t :: Send ^ t |
$!+t :: Send ^+ t |
$!+] :: Send < Ctrl Down > < Tab Down > |
$!+[ :: Send < Ctrl Down >< Shift Down >< Tab Down > < Tab Up > |
$!l :: Send ^ l |
; input methods |
; $+. Send ^, |
; $+. Send ^. |
; navigation, selection, delete a word/till end |
$!Left :: Send |
$!Right :: Send |
$!Up :: Send < Lctrl down > |
$!Down :: Send < Lctrl down > |
$#Left :: Send < ctrl down > |
$#Right :: Send < ctrl down > |
$#+Left :: Send < ctrl down >< shift down > < Left > |
$#+Right :: Send < ctrl down >< shift down > < Right > |
$!+Left :: Send < shift down > |
$!+Right :: Send < shift down > |
$!+Up :: Send < Ctrl Down >< shift down > < Home > |
$!+Down :: Send < Ctrl Down >< shift down > < End > |
!BS :: Send < LShift down > < Home > |
#BS :: Send < LCtrl down > |
$#Space :: Send < Ctrl Down > < LWin Down > This comment has been minimized.Copy link Quote reply Veronika-Kot commented Sep 21, 2018Universal shotcuts started working for me only after I replaced $!x::Send ^x with $#x::Send ^x (replaced ! with #). This comment has been minimized.Copy link Quote reply dorlyneto commented Jan 14, 2019Thank you so much! Works without any problem. 😀 This comment has been minimized.Copy link Quote reply edoardoc commented Jun 28, 2020this is the closest I could get, thank you. PS: I am running this with a pre-code to run the ahk in admin mode, I read that it sorts out some compatibility problems in win10, what do you think? This comment has been minimized.Copy link Quote reply DannyDannyDanny commented Feb 15, 2021Previously I would use the winkey to snap windows around on screen: They no longer work — is there an easy workaround? 👍 This comment has been minimized.Copy link Quote reply ascendbruce commented Feb 16, 2021Hi @DannyDannyDanny, I guess it might be conflicting with one of the Left/Right/Up/Down config group between line 58-71, but I don’t have Windows PC with me right now. Could you try disabling those lines and re-run the script? This comment has been minimized.Copy link Quote reply DannyDannyDanny commented Feb 16, 2021You are right! Deleting lines L58-end resolved the arrow-key issues. I can now snap windows and use arrows to change selection the the window navigator (win: alt-tab). There’ll be some consequences of deleting those lines. So far I haven’t figured out whats missing. Thanks @ascendbruce! 🥇 This comment has been minimized.Copy link Quote reply Aghyads commented Apr 17, 2021#$! can you please explain what does each of these represent in. I want to make changes, but I’m not sure This comment has been minimized.Copy link Quote reply ascendbruce commented Apr 19, 2021 •Hi @Aghyads, you can find their meanings in AutoHotKey’s official doc, under the «Keys and their mysterious symbols» section: https://www.autohotkey.com/docs/Tutorial.htm#s21 And for $ , it’s a Hotkey Modifier Symbols, you can find the usage here: https://www.autohotkey.com/docs/Hotkeys.htm#Symbols This comment has been minimized.Copy link Quote reply tornikenats commented Apr 19, 2021For some reason #BS::Send This comment has been minimized.Copy link Quote reply ascendbruce commented Apr 20, 2021Hi @tornikenats, maybe also try: If that works, I will update the gist. But I don’t have a windows machine with me right now. This comment has been minimized.Copy link Quote reply tornikenats commented Apr 20, 2021Hi @ascendbruce, everything works, it was another one of the lines I added that broke it. Feel free to delete my comment to reduce noise. This comment has been minimized.Copy link Quote reply Aghyads commented Apr 27, 2021@ascendbruce, dear, do you know how I can create the move forward/ redo shortcut. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; You need to disable «Between input languages» shotcut from Control Panel\Clock, Language, and Region\Language\Advanced settings > Change lanugage bar hot keys ; Universal shotcuts ; Quick Switch Tab shotcuts ; navigation, selection, delete a word/till end to move up a folder in Explorer ; Empty trash ^h::WinMinimize, A ; Ctrl+Down ^F19:: Источник |