On OSX, I frequently use the following standard shortcuts that work across all applications:
ctrl+e for end of line
ctrl+a for beginning of line
ctrl+k to copy from the cursor to the end of the line
ctrl+y to paste copies made with ctrl+k
Of these ctrl+k and ctrl+y do not work which has been somewhat frustrating since this is the only app I use where they do not work . This negatively impacts my user experience .
This is also true at Stack Overflow with the editor – it’s a shared open source component with default keyboard shortcuts.
There are alternative keyboard shortcuts for doing those functions, e.g. end takes you to the end of line, home takes you to the beginning of the line, etc.
ウェブサイトが標準的なキーバインドを上書きしてしまう場合、これは役に立ちません。Apple がこれらのバインドを発明したわけではありません。GNU Readline も同じバインドを使用しています。私は主に Linux で作業しているため、これらのキーバインドは Linux でも機能します。OSX に言及したのは、Linux ユーザーに関する問題が一般的に無視されがちだからです。この特定の問題は OSX と Linux の両方のユーザーに影響を及ぼします。
外部 USB キーボードの方がアクセシビリティが高いというあなたの意見は、単なる意見に過ぎません。私の意見では、ホームポジションに素早く戻せる場所にトラックパッドがある方がアクセシビリティが高いです。一つのキーボードに慣れれば済むという点でも、アクセシビリティが高いと言えます(例えば、外部キーボードがないデスク以外の場所で作業する場合など)。そのため、私にとってラップトップのキーボードを使用できることの方が、よりアクセシビリティの高い選択肢です。ただし、私が Macbook を使用している唯一の理由は、会社が支給したものだからです。過去にはキーボードが優れている Thinkpad を使用していました。また、この Macbook は数年経っており、キーボード自体はまともなものです。あなたが述べた藁人形論法の理由により、このラップトップを交換する時期が来たら、おそらく他のメーカーのラップトップを要求するでしょう。しかし、それでもウェブサイトが標準的なキーバインドを上書きすることで生じるアクセシビリティの問題は解決しません。
// ==UserScript==
// @name anti key-grabber
// @description Prevent web apps from capturing and muting vital keyboard shortcuts
// @inject-into auto
// @version 1.1
// ==/UserScript==
function antigrab(e) {
if (! e.ctrlKey) {
return;
}
switch (e.keyCode) {
case 65: // A - goto beginning of line
case 69: // E - goto end of line
case 70: // F - find
case 87: // W - close window
case 84: // T - open tab
case 75: // K - kill to end of line
case 89: // Y - yank
e.stopImmediatePropagation();
e.stopPropagation();
}
}
(function(){
unsafeWindow.document.addEventListener('keydown', antigrab, true);
})();