Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why browsers editing shortcut is the same as emacs default shortcut?

Things like ctrl-a , ctrl-e , ctrl-f, ctrl-b, ctrl-n, ctrl-p, ctrl-k, ctrl-d.

When you edit in a normal html form in any browser I know (IE not included), the shortcuts above works the same as in emacs ?

(When I say normal form , I mean a html form without any interactive js stuff. )

Thank you for answering.

like image 831
wenjun.yan Avatar asked Nov 20 '25 17:11

wenjun.yan


2 Answers

Because these are the key-bindings that God intended for us to use.

like image 53
Stefan Avatar answered Nov 24 '25 15:11

Stefan


It is because your browser uses the readline library. The keybindings depend on the OS Actually. You can even configure the keybindings editing the ~/.inputrc file. You can read more at the readline manual here

like image 24
PuercoPop Avatar answered Nov 24 '25 14:11

PuercoPop



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!