elisp how to check if Shift key is pressed

前端 未结 1 1128
庸人自扰
庸人自扰 2021-01-20 15:55

I need to check if Shift key is pressed. More exactly I would like to set dired switches depending on whether Shift is pressed.

(defadvice find-file-noselect         


        
相关标签:
1条回答
  • 2021-01-20 16:11

    Duplicate question (ignoring the 'Windows' part of the other one).

    Can I send a keypress to Windows from Emacs?

    The best you can do (is as you mention) have different shortcuts. They can be differentiated by capitalization... for example

    (global-set-key (kbd "C-x C-D") 'dired-with-some-switches)
    (global-set-key (kbd "C-x C-d") 'dired-with-other-switches)
    
    0 讨论(0)
提交回复
热议问题