按預設值,不啟用 UNIX 組合。
以下程序指定:
dtmail widget 應用程式的 EMACS 樣式轉換,如桌上管理系統文字編輯程式 (dtpad) 及郵件程式 (dtmail)
替代與這些轉換衝突的 DtEditor widget 應用程式功能表加速鍵。
增加下行至 HomeDirectory /.Xdefaults 檔案:
#include "/usr/dt/app-defaults/language/UNIXbindings"
其中 language(語言) 是 LANG
環境變數。
重新啟動您的階段作業。
將檔案 /usr/dt/app-defaults/language/UNIXbindings 的內容插入 HomeDirectory /.Xdefaults。
編輯 .Xdefaults 檔案中的組合。
當您完成時,重新啟動您的階段作業。
/usr/dt/app-defaults/language /UNIXbindings 檔案提供如下表所述的組合。
啟用 UNIX 組合時,「刪除」鍵會刪除前一字元,而 Shift-Delete 會刪除下一字元。
表 17-1 列出與 UNIX 組合衝突的功能表加速鍵與加速鍵文字的 dtpad 置換。
表 17-1 dtpad 置換
功能表加速鍵與加速鍵文字 |
置換 |
---|---|
Dtpad*fileMenu.print.acceleratorText: |
|
Dtpad*fileMenu.print.accelerator: |
|
Dtpad*editMenu.undo.acceleratorText: |
Ctrl+_ |
Dtpad*editMenu.undo.accelerator: |
Ctrl<Key>_ |
Dtpad*editMenu.paste.acceleratorText: |
Shift+Insert |
Dtpad*editMenu.paste.accelerator: |
Shift<Key>osfInsert |
Dtpad*editMenu. findChange.acceleratorText: |
Ctrl+S |
Dtpad*editMenu. findChange.accelerator: |
Ctrl<Key>s |
表 17-2 列出與 UNIX 組合衝突的功能表加速鍵與加速鍵文字的 dtmail 「撰寫」視窗置換。
表 17-2 dtmail 撰寫視窗置換
功能表加速鍵與加速鍵文字 |
置換 |
---|---|
Dtmail*ComposeDialog*menubar*Edit.Undo.acceleratorText: |
Ctrl+_ |
Dtmail*ComposeDialog*menubar*Edit.Undo.accelerator: |
Ctrl<Key>_ |
Dtmail*ComposeDialog*menubar*Edit.Paste.acceleratorText: |
Shift+Insert |
Dtmail*ComposeDialog*menubar*Edit.Paste.accelerator: |
Shift<Key>osfInsert |
Dtmail*ComposeDialog*menubar*Edit.Find/Change.acceleratorText: |
Ctrl+S |
Dtmail*ComposeDialog*menubar*Edit.Find/Change.accelerator: |
Ctrl<Key>s |
下列的轉換提供(GNU 樣式)EMACS 控制與複合按鍵組合加上一些其它的組合。合適時,它們也允許使用 Shift 鍵與一般組合做組合,以回轉作業的方向。例如,因為 Ctrl+F 通常會往前移動一個字元,Ctrl+Shift+F 就將會使游標往後移動一個字元。
其它的組合為:
Ctrl+逗點-向後移動字
Ctrl+Shift+逗點-向前移動一字
Ctrl+句點-向前移動一字
Ctrl+Shift+句點-向後移動一字
Ctrl+Return-檔案結尾
Ctrl+Shift+Return-檔案開頭
GNU EMACS 將刪除前一字元()而非刪除下一字元()連結至「刪除」鍵。Meta+F 通常是「檔案」功能表的助憶,因此將會忽略向前移動字()。使用其它向前移動字的組合之一(例如,Ctrl+句點)。
表 17-3 列出 DtEditor.text 轉換
表 17-3 DtEditor.text 轉換
修飾按鍵 |
按鍵 |
動作常式 |
---|---|---|
c ~~s |
<Key>a: |
行的開頭 ()\n\ |
c s |
<Key>a: |
行的結束 ()\n\ |
c ~~s |
<Key>b: |
向後移動一字 ()\n\ |
c s |
<Key>b: |
向前移動一字 ()\n\ |
c ~~s |
<Key>b: |
向後移動一字 ()\n\ |
c s |
<Key>b: |
向後移動一字 ()\n\ |
m ~~s |
<Key>b: |
向後移動一字 ()\n\ |
m s |
<Key>b: |
向前移動一字 ()\n\ |
c ~~s |
<Key>d: |
刪除下一字元 ()\n\ |
c s |
<Key>d: |
刪除前一字元 ()\n\ |
m ~~s |
<Key>d: |
清除下一字 ()\n\ |
m s |
<Key>d: |
清除前一字 ()\n\ |
c ~~s |
<Key>e: |
行的結束 ()\n\ |
c s |
<Key>e: |
行的開頭 ()\n\ |
c ~~s |
<Key>f: |
向前移動一字 ()\n\ |
c s |
<Key>f: |
向後移動一字 ()\n\ |
m ~~s |
<Key>f: |
向前移動一字 ()\n\ |
m s |
<Key>f: |
向後移動一字 ()\n\ |
c |
<Key>j: |
換行與縮排 ()\n\ |
c ~~s |
<Key>k: |
清除至行的結束 ()\n\ |
c s |
<Key>k: |
清除至行的開始 ()\n\ |
c |
<Key>l: |
重畫顯示 ()\n\ |
c |
<Key>m: |
換行 ()\n\ |
c s |
<Key>n: |
往上處理 ()\n\ |
c ~~s |
<Key>n: |
往下處理 ()\n\ |
c |
<Key>o: |
換行與備份 ()\n\ |
c ~~s |
<Key>p: |
往上處理 ()\n\ |
c s |
<Key>p: |
往下處理 ()\n\ |
c ~~s |
<Key>u: |
清除至行的開始 ()\n\ |
c s |
<Key>u: |
清除至行的結束 ()\n\ |
c ~~s |
<Key>v: |
下一頁 ()\n\ |
c s |
<Key>v: |
前一頁 ()\n\ |
m ~~s |
<Key>v: |
前一頁 ()\n\ |
m s |
<Key>v: |
下一頁 ()\n\ |
c |
<Key>w: |
清除選擇 ()\n\ |
c ~~s |
<Key>y: |
取消清除 ()\n\ |
m |
<Key>]: |
向前移動一段 ()\n\ |
m |
<Key>[: |
向後移動一段 ()\n\ |
c ~~s |
<Key>comma: |
向後移動一字 ()\n\ |
c s |
<Key>comma: |
向前移動一字 ()\n\ |
m |
<Key>\\<: |
檔案開始 ()\n\ |
c ~~s |
<Key>句點: |
向前移動一字 ()\n\ |
c s |
<Key>句點: |
向後移動一字 ()\n\ |
m |
<Key>\\>: |
檔案結束 ()\n\ |
c ~~s |
<Key>Return: |
檔案結束 ()\n\ |
c s |
<Key>Return: |
檔案開始 ()\n\ |
~~c ~~s ~~m ~~a |
<Key>osfDelete: |
刪除前一字元 ()\n\ |
~~c s ~~m ~~a |
<Key>osfDelete: |
刪除下一字元 () |