deleteToEndOfLine.html 554 B

1234567891011121314151617181920
  1. <html>
  2. <head>
  3. <style>
  4. .editing {
  5. border: 1px solid red;
  6. padding: 12px;
  7. font-size: 24px;
  8. }
  9. </style>
  10. <title>deleteToEndOfLine: test</title>
  11. </head>
  12. <body>
  13. <p>First add the following line to your ~/Library/KeyBindings/DefaultKeyBinding.dict then relaunch Safari: "^k" = "deleteToEndOfLine:";</p>
  14. <p>Place the cursor between the two 'o's in 'Foo' and hit ^k twice. The first should result in 'Fo\nbar' and the second should result in 'Fobar'.</p>
  15. <div class="editing" contentEditable><div>Foo</div><div>bar</div></div>
  16. </body>
  17. </html>