# Keyboard shortcuts in editor break standard OSX shortcuts

**URL:** https://meta.discourse.org/t/keyboard-shortcuts-in-editor-break-standard-osx-shortcuts/30687
**Category:** UX
**Tags:** keyboard-shortcuts
**Created:** [1 يوليو 2015، 8:14م UTC](https://meta.discourse.org/t/keyboard-shortcuts-in-editor-break-standard-osx-shortcuts/30687 "2015-07-01T20:14:46Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![kportertx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kportertx/32/115310_2.png) [@kportertx](https://meta.discourse.org/u/kportertx)
#### Post date: [1 يوليو 2015، 8:14م UTC](https://meta.discourse.org/t/keyboard-shortcuts-in-editor-break-standard-osx-shortcuts/30687/1 "2015-07-01T20:14:47Z")

</div>

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 ☹.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [1 يوليو 2015، 8:50م UTC](https://meta.discourse.org/t/keyboard-shortcuts-in-editor-break-standard-osx-shortcuts/30687/2 "2015-07-01T20:50:14Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![kportertx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kportertx/32/115310_2.png) [@kportertx](https://meta.discourse.org/u/kportertx)
#### Post date: [15 يوليو 2019، 6:44م UTC](https://meta.discourse.org/t/keyboard-shortcuts-in-editor-break-standard-osx-shortcuts/30687/3 "2019-07-15T18:44:41Z")

</div>

> [@codinghorror](#):
>
> توجد اختصارات لوحة مفاتيح بديلة لأداء هذه الوظائف، مثل: end ينقلك إلى نهاية السطر، وhome ينقلك إلى بداية السطر، وهكذا.

لوحة مفاتيح MacBook لا تحتوي على هذه المفاتيح، كما أن هذه المفاتيح ليست سهلة الوصول أثناء الكتابة، لأنك تضطر إلى تحريك يدك اليمنى بعيدًا عن الصف الأساسي.

---

<div class="post-metadata">

### Author: ![justin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin/32/157614_2.png) [@justin](https://meta.discourse.org/u/justin)
#### Post date: [15 يوليو 2019، 7:51م UTC](https://meta.discourse.org/t/keyboard-shortcuts-in-editor-break-standard-osx-shortcuts/30687/4 "2019-07-15T19:51:25Z")

</div>

أستخدم CMD+← للانتقال إلى البداية، وCMD+→ للانتقال إلى النهاية.

---

<div class="post-metadata">

### Author: ![kportertx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kportertx/32/115310_2.png) [@kportertx](https://meta.discourse.org/u/kportertx)
#### Post date: [15 يوليو 2019، 7:57م UTC](https://meta.discourse.org/t/keyboard-shortcuts-in-editor-break-standard-osx-shortcuts/30687/5 "2019-07-15T19:57:37Z")

</div>

يعمل ctrl + a و ctrl + e كـ home و end بشكل صحيح. التعديل الإشكالي هو ctrl + k الذي يقوم عادةً بقص النص حتى نهاية السطر، لكنه هنا يعرض قالبًا لربط.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [15 يوليو 2019، 10:36م UTC](https://meta.discourse.org/t/keyboard-shortcuts-in-editor-break-standard-osx-shortcuts/30687/6 "2019-07-15T22:36:08Z")

</div>

إذا كانت إمكانية الوصول هي الشاغل الرئيسي، فلماذا استخدام جهاز محمول، وخاصة جهاز محمول من شركة آبل الذي يتخذ العديد من المفاضلات للحفاظ على رقة وخفة الجهاز، وغالبًا ما يكون ذلك على حساب [قابلية الإصلاح](https://www.ifixit.com/laptop-repairability) أو حتى [توفر لوحة مفاتيح تعمل بشكل صحيح؟](https://www.theverge.com/2019/3/27/18284042/apple-macbook-keyboard-apology-issues-bad-design) يمكنك أيضًا استخدام لوحات مفاتيح USB خارجية مصممة خصيصًا _لتحسين_ إمكانية الوصول.

---

<div class="post-metadata">

### Author: ![kportertx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kportertx/32/115310_2.png) [@kportertx](https://meta.discourse.org/u/kportertx)
#### Post date: [15 يوليو 2019، 11:37م UTC](https://meta.discourse.org/t/keyboard-shortcuts-in-editor-break-standard-osx-shortcuts/30687/7 "2019-07-15T23:37:07Z")

</div>

> [@codinghorror](#):
>
> إذا كانت إمكانية الوصول هي الشاغل الرئيسي، فلماذا استخدام حاسوب محمول، وخاصة حاسوب آبل المحمول الذي يضحي بالعديد من الأمور للحفاظ على خفة الوزن ورقة التصميم، وغالبًا ما يكون ذلك على حساب [قابلية الإصلاح](https://www.ifixit.com/laptop-repairability) أو حتى [وجود لوحة مفاتيح تعمل بشكل صحيح؟](https://www.theverge.com/2019/3/27/18284042/apple-macbook-keyboard-apology-issues-bad-design)

هل هذه حجج وهمية؟

> [@codinghorror](#):
>
> يمكنك أيضًا استخدام لوحات مفاتيح USB خارجية مصممة خصيصًا _لتحسين إمكانية الوصول_.

لن تساعد في الحالات التي تتجاوز فيها المواقع الإلكترونية اختصارات المفاتيح القياسية. لم يخترع آبل هذه الاختصارات، حيث تشارك مكتبة [GNU Readline](https://tiswww.cwru.edu/php/chet/readline/rluserman.html) نفس الاختصارات. أنا أعمل في الغالب من نظام لينكس، لذا تعمل هذه الاختصارات هناك أيضًا. لم أذكر نظام ماك أو إس إلا لأن القضايا المتعلقة بمستخدمي لينكس تُغفل عادةً، وهذه القضية بالتحديد تؤثر على مستخدمي ماك أو إس ولينكس على حد سواء.

رأيك بأن لوحة المفاتيح الخارجية عبر USB أكثر إمكانية للوصول هو مجرد رأي. أما في رأيي، فإن وجود لوحة تتبع (trackpad) في مكان يمكنني منه العودة بسرعة إلى صف المفاتيح الأساسي (home row) يجعلها أكثر إمكانية للوصول. كما أن الاعتماد على لوحة مفاتيح واحدة فقط أمر أكثر إمكانية للوصول (مثلًا عندما لا أكون على مكتبي مع لوحة المفاتيح الخارجية). لذا، بالنسبة لي، فإن القدرة على استخدام لوحة مفاتيح حاسوبي المحمول هي الخيار الأكثر إمكانية للوصول. مع ذلك، السبب الوحيد لاستخدامي لآبل ماك بوك هو أنه تم تزويدي به من الشركة، وفي الماضي كنت أستخدم أجهزة ثينك باد التي تتميز بلوحات مفاتيح أفضل. كما أن هذا الجهاز ماك بوك عمره عدة سنوات الآن، لذا فإن لوحته المفاتيح في الواقع جيدة. ولأسباب ذكرتها في حجتك الوهمية، سأطلب على الأرجح حاسوبًا محمولًا من شركة أخرى عندما يحين وقت استبداله، لكن ذلك لن يحل بأي حال من الأحوال مشكلات إمكانية الوصول الناتجة عن المواقع الإلكترونية التي تتجاوز اختصارات المفاتيح القياسية.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [31 يوليو 2019، 5:11ص UTC](https://meta.discourse.org/t/keyboard-shortcuts-in-editor-break-standard-osx-shortcuts/30687/8 "2019-07-31T05:11:20Z")

</div>

> [@kportertx](#):
>
> ctrl + k الذي يقص عادةً إلى نهاية السطر، لكنه هنا يعرض قالبًا للرابط.

مثير للاهتمام، هذه هي المرة الأولى التي أسمع فيها عن قص ctrl+k، ومن المثير للاهتمام أن شبكة Stack Overflow بأكملها تخطف هذا الاختصار أيضًا، بينما يتركه Gmail كما هو.

أنا متردد جدًا في هذا الشأن… إعادة ترجمة جميع تلميحات الأدوات `Hyperlink (Ctrl+K)` وإعادة ربطها بـ `CTRL+SHIFT+K`، وإعادة تدريب جميع المستخدمين الذين يستخدمون `CTRL+K`، وما إلى ذلك، هي مهمة مكلفة للغاية.

هل لا يمكنك إعادة ربط قص نهاية السطر إلى مفتاح آخر، أو ربما استخدام مكون سمة لإعادة ربط الاختصار لموقعك إذا كانت هذه مشكلة كبيرة بالنسبة لك؟

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [31 يوليو 2019، 5:33ص UTC](https://meta.discourse.org/t/keyboard-shortcuts-in-editor-break-standard-osx-shortcuts/30687/9 "2019-07-31T05:33:47Z")

</div>

Ctrl+K هو اصطلاح مستقل عن نظام التشغيل لإدراج الروابط التشعبية. ينطبق على مجموعات تطوير الويب المختلفة وحتى على برامج مثل Microsoft Word. إنه شائع لدرجة أنه يحتوي حتى على [مُدخل في ويكيبيديا](https://en.wikipedia.org/wiki/Control-K).

إذا كنت تقوم بتحرير منشور، فمن المرجح جدًا أنك ستقوم بإدراج رابط بدلاً من البحث عن الاستخدام الآخر.

---

<div class="post-metadata">

### Author: ![kportertx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kportertx/32/115310_2.png) [@kportertx](https://meta.discourse.org/u/kportertx)
#### Post date: [21 أغسطس 2019، 6:31م UTC](https://meta.discourse.org/t/keyboard-shortcuts-in-editor-break-standard-osx-shortcuts/30687/10 "2019-08-21T18:31:57Z")

</div>

> [@sam](#):
>
> من المثير للاهتمام أن شبكة Stack Overflow بأكملها تختطف هذا أيضًا

نعم، تفعل ذلك 😡.

في رأيي، مجرد كتابة “[العنوان](URL)” أكثر ملاءمة من الاختصار “ctrl+k URL tab العنوان return”.

> [@sam](#):
>
> أنا متردد جدًا في هذا الشأن… إعادة ترجمة جميع تلميحات “رابط تشعبي (Ctrl+K)” وإعادة ربطها بـ “CTRL+SHIFT+K”، وإعادة تدريب جميع المستخدمين الذين يستخدمون “CTRL+K”، وما إلى ذلك، هي مهمة مكلفة للغاية.

أقدر أن يُسمح لي بتخصيص ارتباطات المفاتيح على موقع ما أو حتى تعطيلها تمامًا.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [22 أغسطس 2019، 12:28ص UTC](https://meta.discourse.org/t/keyboard-shortcuts-in-editor-break-standard-osx-shortcuts/30687/11 "2019-08-22T00:28:59Z")

</div>

أعتقد أن إضافات المتصفح ستسمح لك بذلك.

---

<div class="post-metadata">

### Author: ![kportertx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kportertx/32/115310_2.png) [@kportertx](https://meta.discourse.org/u/kportertx)
#### Post date: [22 أغسطس 2019، 12:44ص UTC](https://meta.discourse.org/t/keyboard-shortcuts-in-editor-break-standard-osx-shortcuts/30687/12 "2019-08-22T00:44:30Z")

</div>

قد يكون ذلك صحيحًا، رغم أنني لم أجد أيًا منها يمكنني التأكد من أنه ليس برنامج تجسس على لوحة المفاتيح :). الإضافات التي راجعتها تتطلب أذونات مقلقة لتحقيق ذلك.

---

<div class="post-metadata">

### Author: ![kportertx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kportertx/32/115310_2.png) [@kportertx](https://meta.discourse.org/u/kportertx)
#### Post date: [6 سبتمبر 2019، 9:30م UTC](https://meta.discourse.org/t/keyboard-shortcuts-in-editor-break-standard-osx-shortcuts/30687/13 "2019-09-06T21:30:33Z")

</div>

بالنسبة لغير المتأثرين: إليك سكريبت لـ [Violent Monkey](https://violentmonkey.github.io/):

كإضافة، يُصلح هذا أيضًا وظيفة ‘البحث’، التي يتم تجاوزها مؤخرًا من قبل العديد من صفحات الويب للبحث داخل الموقع بدلاً من البحث داخل الصفحة (لا علاقة لـ Discourse بهذا عند وقت النشر).

```plaintext
// ==UserScript==
// @name anti key-grabber
// @description منع تطبيقات الويب من التقاط وإسكات اختصارات لوحة المفاتيح الحيوية
// @inject-into auto
// @version 1.1
// ==/UserScript==

function antigrab(e) {
  if (! e.ctrlKey) {
    return;
  }
 
  switch (e.keyCode) {
    case 65: // A - الانتقال إلى بداية السطر
    case 69: // E - الانتقال إلى نهاية السطر
    case 70: // F - البحث
    case 87: // W - إغلاق النافذة
    case 84: // T - فتح تبويب جديد
    case 75: // K - الحذف حتى نهاية السطر
    case 89: // Y - الإلصاق
      e.stopImmediatePropagation();
      e.stopPropagation();
  }
}

(function(){
unsafeWindow.document.addEventListener('keydown', antigrab, true);
})();

```

(مستوحى من: [https://gist.github.com/rodneyrehm/5213304](https://gist.github.com/rodneyrehm/5213304))

---

<div class="post-metadata">

### Author: ![kportertx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kportertx/32/115310_2.png) [@kportertx](https://meta.discourse.org/u/kportertx)
#### Post date: [6 سبتمبر 2019، 9:44م UTC](https://meta.discourse.org/t/keyboard-shortcuts-in-editor-break-standard-osx-shortcuts/30687/14 "2019-09-06T21:44:11Z")

</div>

> [@سام، منشور: 8، موضوع: 30687](#):
>
> يترك Gmail الأمر كما هو.

لاحظت اليوم أن Gmail بدأ أيضًا في الاستيلاء على Ctrl+K 🤪.
