저는 GUI 텍스트 편집기 SciTE를 사용하고 있으며 다음 키 조합을 사용하여 SciTE에서 직사각형 텍스트 영역을 선택하고 싶습니다: AltShiftUp및 AltShiftDown.
Linux Mint에서는 이 작업을 수행할 수 있는 것 같지만 Debian에서는 작동하지 않습니다.
데비안은 이러한 키를 차단합니다.
사용자 응용 프로그램에서 이러한 키를 사용할 수 있게 만드는 방법을 알고 싶습니다.
내 시스템:
- 리눅스 민트 18, MATE 1.14.1
- 데비안 8.7(제시), MATE 1.8.1
저는 AltShift두 시스템에서 키보드 레이아웃(영어 - 러시아어)을 전환하는 데 사용합니다.
나는 그것이 (나의 "손가락 기억" 때문에) 그대로 있기를 바랍니다.
내가 시도한 것: 모든 키 조합을 열고 변경하고 비활성화한 다음 Linux를 다시
시작 dconf-editor
했습니다 mouse-button-modifier
. 그것은 내 문제를 해결하지 못했습니다. <Alt>
<Super>
흥미로운 세부 사항:
VirtualBox(호스트 = Debian, 게스트 = Linux Mint)를 사용할 때 Alt-Shift-Up/Down
키 조합이 게스트 시스템 내부에서 작동합니다!
xev
AltShiftUpLinux Mint에서의 출력:
KeyPress event, serial 38, synthetic NO, window 0x3c00001,
root 0x26b, subw 0x3c00002, time 1272551, (42,42), root:(465,335),
state 0x10, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 38, synthetic NO, window 0x3c00001,
root 0x26b, subw 0x3c00002, time 1273025, (42,42), root:(465,335),
state 0x18, keycode 50 (keysym 0xfe08, ISO_Next_Group), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 38, synthetic NO, window 0x3c00001,
root 0x26b, subw 0x3c00002, time 1273538, (42,42), root:(465,335),
state 0x19, keycode 111 (keysym 0xff52, Up), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 38, synthetic NO, window 0x3c00001,
root 0x26b, subw 0x3c00002, time 1273605, (42,42), root:(465,335),
state 0x19, keycode 111 (keysym 0xff52, Up), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 38, synthetic NO, window 0x3c00001,
root 0x26b, subw 0x3c00002, time 1274384, (42,42), root:(465,335),
state 0x19, keycode 50 (keysym 0xfe08, ISO_Next_Group), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 38, synthetic NO, window 0x3c00001,
root 0x26b, subw 0x3c00002, time 1274824, (42,42), root:(465,335),
state 0x18, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
xev
데비안에서의 출력 AltShiftUp:
KeyPress event, serial 38, synthetic NO, window 0x4000001,
root 0x296, subw 0x4000002, time 13862445, (48,45), root:(85,108),
state 0x10, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 38, synthetic NO, window 0x4000001,
root 0x296, subw 0x4000002, time 13862855, (48,45), root:(85,108),
state 0x18, keycode 50 (keysym 0xfe08, ISO_Next_Group), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
PropertyNotify event, serial 38, synthetic NO, window 0x4000001,
atom 0x1c0 (XKLAVIER_STATE), time 13862856, state PropertyNewValue
PropertyNotify event, serial 38, synthetic NO, window 0x4000001,
atom 0x1c0 (XKLAVIER_STATE), time 13862857, state PropertyNewValue
PropertyNotify event, serial 38, synthetic NO, window 0x4000001,
atom 0x1c0 (XKLAVIER_STATE), time 13862857, state PropertyNewValue
PropertyNotify event, serial 38, synthetic NO, window 0x4000001,
atom 0x1c0 (XKLAVIER_STATE), time 13862858, state PropertyNewValue
KeyPress event, serial 38, synthetic NO, window 0x4000001,
root 0x296, subw 0x4000002, time 13863422, (48,45), root:(85,108),
state 0x2018, keycode 111 (keysym 0xff52, Up), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 38, synthetic NO, window 0x4000001,
root 0x296, subw 0x4000002, time 13863489, (48,45), root:(85,108),
state 0x2018, keycode 111 (keysym 0xff52, Up), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 38, synthetic NO, window 0x4000001,
root 0x296, subw 0x4000002, time 13864456, (48,45), root:(85,108),
state 0x2018, keycode 50 (keysym 0xfe08, ISO_Next_Group), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 38, synthetic NO, window 0x4000001,
root 0x296, subw 0x4000002, time 13864793, (48,45), root:(85,108),
state 0x2018, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
xev
AltShiftLinux Mint에서의 출력:
KeyPress event, serial 38, synthetic NO, window 0x3c00001,
root 0x26b, subw 0x3c00002, time 3118153, (47,39), root:(78,133),
state 0x10, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 38, synthetic NO, window 0x3c00001,
root 0x26b, subw 0x3c00002, time 3118245, (47,39), root:(78,133),
state 0x18, keycode 50 (keysym 0xfe08, ISO_Next_Group), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 38, synthetic NO, window 0x3c00001,
root 0x26b, subw 0x3c00002, time 3118377, (47,39), root:(78,133),
state 0x19, keycode 50 (keysym 0xfe08, ISO_Next_Group), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
PropertyNotify event, serial 38, synthetic NO, window 0x3c00001,
atom 0x1c4 (XKLAVIER_STATE), time 3118380, state PropertyNewValue
PropertyNotify event, serial 38, synthetic NO, window 0x3c00001,
atom 0x1c4 (XKLAVIER_STATE), time 3118382, state PropertyNewValue
PropertyNotify event, serial 38, synthetic NO, window 0x3c00001,
atom 0x1c4 (XKLAVIER_STATE), time 3118383, state PropertyNewValue
PropertyNotify event, serial 38, synthetic NO, window 0x3c00001,
atom 0x1c4 (XKLAVIER_STATE), time 3118385, state PropertyNewValue
KeyRelease event, serial 38, synthetic NO, window 0x3c00001,
root 0x26b, subw 0x3c00002, time 3118535, (47,39), root:(78,133),
state 0x2018, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
xev
데비안에서의 출력 AltShift:
KeyPress event, serial 38, synthetic NO, window 0x4000001,
root 0x296, subw 0x4000002, time 16284126, (36,50), root:(76,134),
state 0x10, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 38, synthetic NO, window 0x4000001,
root 0x296, subw 0x4000002, time 16284503, (36,50), root:(76,134),
state 0x18, keycode 50 (keysym 0xfe08, ISO_Next_Group), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
PropertyNotify event, serial 38, synthetic NO, window 0x4000001,
atom 0x1c0 (XKLAVIER_STATE), time 16284506, state PropertyNewValue
PropertyNotify event, serial 38, synthetic NO, window 0x4000001,
atom 0x1c0 (XKLAVIER_STATE), time 16284506, state PropertyNewValue
PropertyNotify event, serial 38, synthetic NO, window 0x4000001,
atom 0x1c0 (XKLAVIER_STATE), time 16284507, state PropertyNewValue
PropertyNotify event, serial 38, synthetic NO, window 0x4000001,
atom 0x1c0 (XKLAVIER_STATE), time 16284507, state PropertyNewValue
KeyRelease event, serial 38, synthetic NO, window 0x4000001,
root 0x296, subw 0x4000002, time 16284786, (36,50), root:(76,134),
state 0x2018, keycode 50 (keysym 0xfe08, ISO_Next_Group), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 38, synthetic NO, window 0x4000001,
root 0x296, subw 0x4000002, time 16285071, (36,50), root:(76,134),
state 0x2018, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
보시다시피 AltShift키 조합은 다르게 처리됩니다.
- 데비안 키보드 레이아웃에서는 PRESS 키를 눌러 열고,
- Linux Mint에서는 키보드 레이아웃이 RELEASE 키로 전환됩니다.
주문하다:
ALT pressed
SHIFT pressed
(at this moment Debian switches layout)
SHIFT released
(at this moment Linux Mint switches layout)
ALT released
AltShiftUp어쩌면 이것이 데비안에서 작동하지 않는 이유일 수도 있습니다.
AltShiftUp데비안 과 어떻게 공존할 수 있나요 AltShift?