我安装了 LMDE2 Mate,并使用指向 Debian 测试的存储库。
在 Pycharm(Jetbrains IDE) 中,我必须按Shift+ Alt+E才能调用 python 控制台。
我的问题是,当我按下Shift+Alt键盘布局切换事件时被调用。我还有其他一些相关问题。
我认为可以通过配置键盘在释放时应用按下(默认 Windows 行为,AFAIK)来解决,而不是在按下时应用,但我找不到任何有关如何执行此操作的参考。
我见过这个关于 StackOverflow 的问题,但没有在那里找到任何有用的信息。
xev
记录Shift+ Alt+ E:
KeyPress event, serial 38, synthetic NO, window 0x4600001,
root 0x114, subw 0x0, time 28863279, (-505,381), root:(507,666),
state 0x0, 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 0x4600001,
root 0x114, subw 0x0, time 28863709, (-505,381), root:(507,666),
state 0x8, 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 0x4600001,
atom 0x1db (XKLAVIER_STATE), time 28863710, state PropertyNewValue
PropertyNotify event, serial 38, synthetic NO, window 0x4600001,
atom 0x1db (XKLAVIER_STATE), time 28863710, state PropertyNewValue
PropertyNotify event, serial 38, synthetic NO, window 0x4600001,
atom 0x1db (XKLAVIER_STATE), time 28863711, state PropertyNewValue
PropertyNotify event, serial 38, synthetic NO, window 0x4600001,
atom 0x1db (XKLAVIER_STATE), time 28863711, state PropertyNewValue
KeyPress event, serial 38, synthetic NO, window 0x4600001,
root 0x114, subw 0x0, time 28865393, (-505,381), root:(507,666),
state 0x2008, keycode 26 (keysym 0x6d5, Cyrillic_u), same_screen YES,
XLookupString gives 2 bytes: (d1 83) "у"
XmbLookupString gives 2 bytes: (d1 83) "у"
XFilterEvent returns: False
KeyRelease event, serial 38, synthetic NO, window 0x4600001,
root 0x114, subw 0x0, time 28865605, (-505,381), root:(507,666),
state 0x2008, keycode 26 (keysym 0x6d5, Cyrillic_u), same_screen YES,
XLookupString gives 2 bytes: (d1 83) "у"
XFilterEvent returns: False
KeyRelease event, serial 38, synthetic NO, window 0x4600001,
root 0x114, subw 0x0, time 28867681, (-505,381), root:(507,666),
state 0x2008, keycode 50 (keysym 0xfe08, ISO_Next_Group), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 38, synthetic NO, window 0x4600001,
root 0x114, subw 0x0, time 28867701, (-505,381), root:(507,666),
state 0x2008, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
编辑。布局切换快捷键阻止我使用相同的组合问完全相同的问题,但没有提供答案。将键盘布局更改切换到另一个快捷方式不是一个选项。