Tuesday 4 September 2018

keyboard shortcuts - How can I prevent shift-delete from cutting in Windows?


I want to prevent Shift-delete from putting the selected stuff to the buffer - it overwrites what I already have in the clipboard, which is a problem, because I always use Ctrl+X for cutting and Shift+Delete only happens when I'm editing stuff and just want to delete it (shift remains pressed after selecting something).



Answer



* SOLUTION *


I just discovered this problem today while trying to figure out why the 'delete' key would sometimes 'copy to clipboard'. So far the only solution I've found is to use AutoHotKey (free).


So I thought I would post some basic setup instructions for anyone else that's interested in a solution to this problem:


First, install AutoHotKey, run it and allow it to create and open the example/default AutoHotkey.ahk script when it prompts you. Add the following to the script:


+Delete::
KeyWait Shift
Send {Delete}

I'm not sure but you may have to "reload" the script before it starts working (I reloaded before testing). To reload, bring the AutoHotKey app to the foreground and press Ctrl+R (or click File -> Reload Script).


If you're happy with the results then you'll probably want to setup AutoHotKey to run automatically on startup. This is done by selecting the AutoHotkey.ahk file (in your 'My Documents' folder) and then going to your startup folder (C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup) and clicking "Paste Shortcut" from the "Edit" menu (Press Alt+E if you don't see a menu bar).


In testing, this fix worked great for me on Windows 7. I'll be posting this same solution under my own post but since I'm a new user it won't let me answer my own question yet.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...