pkamb / powerkey Goto Github PK
View Code? Open in Web Editor NEWRemap your Macbook's power key to Forward Delete
License: MIT License
Remap your Macbook's power key to Forward Delete
License: MIT License
I purchased PowerKey a few minutes ago, and it doesn't work very well. It only works about half the time I press it. Also, when I press the key multiple times in a row, it only works for the first one or two presses. Sometimes it randomly makes my computer go into Sleep mode. The behavior is erratic and inconsistent. I'm using a 2015 MacBook Pro with macOS Sierra. I have uninstalled PowerKey on Gumroad and I would like to request a refund please. Thank you.
If use Delete (which make sense because regular location) for Power button it doesn't work always. If user presses (taps) button fast, nothing happens, i.e. symbol doesn't erase. They erase only if big timespan between taping.
Probably, this is because OS tracks the button pressing and waiting for acting Sleep action. Thus, if possible to disable Sleep action for the Power button - it will help to work Delete action as usual button.
I downloaded PowerKey which was advertised for free:
http://osxdaily.com/2013/04/26/delete-key-mac-forward-del/
But the readme.md file says I must pay or modify my Mac's Gatekeeper security settings.
The release version of PowerKey.app
can be purchased via Gumroad.
https://gumroad.com/l/powerkey
The release version of PowerKey is signed with our DeveloperID, making it easier to run by default on Mac OS X. Purchasing the code-signed release version of PowerKey will allow you to run the app without modifying your Mac's Gatekeeper security settings.
I am new to Mac and don't know if I want to do that. Nonetheless, I do want forward-delete via the power key your way, if not available another way. I don't even know what file to run to install the app.
I bought Powerkey from Gumroad about a month ago. I have it set to launch on startup and I would like it to automatically run in the background without the need for clicking the option in the preferences dialog every time. I would also like the preferences dialog not to show once this has been set.
It would therefore be helpful to have three options in the preferences window:
Obviously, users would still need a way to access the preferences should they change their mind. I think the best way to handle this would be to show the preferences whenever the Powerkey application is activated when Powerkey is already running. i.e. if you explicitly activate Powerkey while it is already running (by clicking the application icon in Finder or from Application Launcher) then it would show the preferences dialog. If the user activates Powerkey and it is not already running (e.g. on startup) then Powerkey would follow the user's chosen preference to run in the background and would not show the preferences dialog.
No replacement function like Delete Forward, just ignore the button entirely.
This would help the owners of the Apple Wireless keyboard.
Thanks.
Application is cool, but will be better if delete (or another action) will work after I move my hand from button. Because now when I want to lock my laptop it first remove one symbol and only then locking.
when power key is on the shake to find mouse feature in el capitan does not work.
Hy, I have an macBook Pro which is in a BookArc connected to a LG-display and an external keyboard. So the MBP is closed. Can i use this PowerKey ON my external keyboard for powering on/off the MBP?
Best regrards,
Gunther
Greetings from Vienna, Austria - sorry for my bad english. #
Hi, I just bought powerkey and I like it, but could you also add F12 as an option?
I think this is an easy change and would help me a lot.
I changed from a normal windows keyboard to an apple keyboard and at that position was the F12 key.
If I leave about half a second between key presses, forward delete works as expected.
I'm on a 15" MBP Retina if it's helpful.
If power key is running then the control + control keyboard shortcut for papers 3 (a program for storing and citing references in academic writing) magic citations will not function. You can still use the control + m shortcut in citations if you enable it in papers citation preferences. however if you want to use control + control you need to quit power key and also make sure it does not run at startup then restart the computer.
Should release the .zip
directly so people don't have to download the source .zip.
Please, i need the supr button like in windows. How can i make it?
Thank you!!
I installed the latest release from Gumroad to support the cause and to get notices of updates. When launched in macOS Sierra, the Gatekeeper identifies it as an unsigned app. I can open it but it always asks for verification. Is there a solution? I don't want to disable the Gatekeeper function and I do want PowerKey to load at login without this annoying message box.
In OS X 10.9 Mavericks, the computer goes to sleep immediately when the power button is pressed. PowerKey still sends your replacement keypress, but does not prevent the Sleep function.
OS X Mavericks: Using the power button
Learn how the power button works in OS X Mavericks.
PowerKey no longer blocks the 1st item on the list, a quick press of the power key. Need to support/block the new Mavericks interactions.
EDITED WITH THE SOLUTION BELOW
(Note that this issue has been corrected in OS X 10.10 El Capitan and later versions. This fix is only needed if you're running Mavericks)
OS X 10.9 introduced new behavior for the Power key:
In the 10.9.2 update, Apple made this behavior configurable:
defaults write com.apple.loginwindow PowerButtonSleepsSystem -bool NO
To disable this immediate Sleep behavior and make the Power key usable with PowerKey:
defaults write com.apple.loginwindow PowerButtonSleepsSystem -bool NO
Hi
Please claim my donation https://flattr.com/thing/3476665
Thank you for this useful app ;)
Ivan
Hi i have macbook 2009/2010 year (both) they have eject button not power button. So i want replace this eject button with power button, how i can do this? for example i will replace my superDrive with hdd and i don't need no more this button same time i want move off my mac outside from table and not go anytime to power it on.
Sorry for my english...
I think adding a force quit command to the available options would be useful.
Hello,
My silver power button (not within keyboard) no longer functions.
I bought powerkey in order to remap, but the app is somehow not being recognized, or my computer does not respond. I downloaded the powerkey app, and set the powerkey to various keys - escape, tab, f13. none respond. I have tried with caps pressed and not.
Is there something I need to do differently?
Thank you!
"Shift + Power Key (Tab)" should produce a Tab-Left, for example.
pkamb, awesome work on your app, love it! Just out of curiosity, have you looked into building this for OS X Yosemite? I have no idea how to go about doing this myself, and I understand that plenty of developers don't like building for beta releases, but I was just curious whether you were in the works on this or if it was one of those things where you planned on waiting for the final release first.
Thanks!
Can you clarify the license for this project?
I would like to be able to lock the screen when I press the eject button. Having a nice keyboard shortcut like Windows users have win+L key combination would be very handy in a corporate environment.
Hi pkamb,
on OSX there is no simple shortcut to Lock the Screen or Switch Off the screen.
The Power Key on Mavericks put it to sleep disconnecting from the WiFi or Ethernet connection and that is so bad for me :(
I really like to remap the Power Key into:
โง + โ + Fn + Power Key
Thank you!
The latest gen mac bluetooth keyboards come with an eject key. I'd like to map this useless key to the power button - matching the layout of the built in keyboard. Is this possible? I've downloaded the app and tinkered with the settings but as far as I can tell, nothing is happening.
Maybe I'm misunderstanding the readme, but "But PowerKey does work with the Eject key as well, so you're in luck" leads me to believe this is possible.
If the app is opened manually by the user, the preference window should be shown.
If the app is opened by the system automatically at login, the preference window should not be shown.
I am using windows 7 using VMware fusion which is why I wanted to buy Powerkey,
I have just bought it and it works immediately in Mac but when I press the power key once in the virtual machine it deletes continuously as if I have held the delete key down on a normal PC
Anyone had this issue or have any ideas to solve it?
I am running Windows 7 Ultimate on VMware Fusion Professional v7 0 0
When using a applescript to execute the following command "pmset displaysleepnow" the power settings menu always comes on as well. I've noticed that it ONLY does this when using that specific terminal command.
Is there anyway you can add a Sleep Display feature to the standard functions?
Thanks!
I bought this because karabiner doesn't work with Sierra. I used to use karabiner to make backslash do forward delete. I like the concept of your app but it is way too slow. To delete more than one letter I have to tap and hold for each letter which is painful. Is there any way you can make this app work faster?
Is it also possible to do the reverse? Like you press any other assigned key to power up the macbook from off. That would be handy as a lot of folk's older macbook pros with the dedicated power button, including mine, is acting up and not work. So we just can't turn on the macbooks because of the defective power button but need to reset by disconnecting the battery. Any help would be greatly appreciated.
Thanks.
I'd like to be able to install this with brew cask install powerkey
: https://caskroom.github.io/
Or doesnt seem To work on Sierra any suggestions ?
On Apple's latests MacBook Pro notebooks, the Touch Bar replaces all keys on the function row, including the Escape key and Power key.
Source: https://512pixels.net/2016/10/magic-toolbar-sierra-leak/
Opening this issue to discuss usage of and/or alternatives to PowerKey on new Apple laptops with the Magic Toolbar.
Cmd+Delete deletes forward a word--use it all the time! Can you make PowerKey support this?
Thanks :) :)
Any chance you can add in a VolumeUp event line to your code to replace the power key? I'm able to add in F12, which works, but can't get the volume up to work. Is this easier to do with applescript? Finally upgrading to ElCap and it's causing the biggest headaches. Thanks.
Hey,
The keyboard of my macbook pro 13" 2011 is not working 100%. In particular only specific keys work (Letter W for instance). The power button does not work.
Thus, I would like to set this key to power on/of button. Isn't there anyway to set an arbitrary key to the power button?
Thanks
I created PowerKey with Xcode. It has a warning plus analysis says it may have a memory leak? It works regardless. I am planning on buying the app rather than use my own compiled version. Just wanted to make sure it worked first. By the by, I'm using Xcode 8 and running macOS (Sierra). If you were to update the code, would the purchased version get updated? Does it check for updates? IS the update free? Comment on the memory leak and warnings?
Hi,
on German keyboard layouts (used in here Austria and also in Germany), we got the accents (acute and grave) next to the backspace key. Nobody understands why, because those accents are hardly every used in German. So, this key (right next to the backspace key!) is the dream place for delete.
I am desperately trying to re-map this key (tried ctrl-d using ukelele, also some other fiddling with DefaultKeyBinding.dict), but it does not seem to work reliably. Do you see an option to help us out, by creating a version that re-maps that key?
I guess this should be far easier than using the power key, and I am convinced this would make you a national hero among Mac users here in Austria and Germany... ;-)
Kind regards from Vienna,
Philipp
I use BetterTouchTool to bind Hyper+X to open applications, so for instance
cmd
+option
+control
+shift
+c
for Chrome
cmd
+option
+control
+shift
+f
for Firefox
etc...
I use KeyRemap4MacBook to bind fn
to "Hyper" (cmd
+option
+control
+shift
) and it works pretty well until I want to bind on the right side of the keyboard; for instance, fn
+o
for Opera. KeyRemap4MacBook has options to remap the power key and one option for "Old ADB Keyboard" that binds it to fn
but that doesn't work for the MacBook keyboard of course.
My understanding is that pressing and holding the power key + another key isn't possible... So that's what I'm thinking maybe it's possible to "tap" the power key to toggle the Hyper until the next individual key (o
) is pressed.
Didn't see any issues about toggling on power key tap so hope this issue is justified, ty ๐
Use NSLocalizedString to localize the UI.
I like to then map F13 to things like a drop-down terminal, etc.
I've removed the superdrive from my MBP to fit an SSD, so my eject
key is pretty useless. Can this be modified to support mapping of the eject
key to forwards delete?
Hi, I've got the eject mapped to F13 on my 2012 MBP. I tested it a bit OS X Yosemite and it worked somewhat sporadically. However, on OS Sierra, I only get an error tone when pressed. The way I use it is to have the F13 activate an automator workflow application. I use triggers in Quicksilver to assign this application to F13.
In Quicksilver, pressing the Eject/F13 seems to register fine and I'm able to assign the F13 as a trigger. However, when I go to actually use it, it gives the error tone and does not actually launch the application as it is assigned to do.
Previously, I used to use Karabiner +Quicksilver in the same way where F13 launched the specified workflow and it worked flawlessly. I also used ^F13 or shift+F13 to launch another workflow. This doesn't seem to be working with PowerKey. Any idea what the limitation is?
I know this is somewhat convoluted, but I'm happy to clarify.
I am really missing Insert key from the PC keyboard in Remote Desktop sessions and in virtual machines.
Used to delete a word forward. Hoping we get support for this :)
i do not have a power button on my wireless mac keyboard
please help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.