UI: Allow AltGr Key + C,V,X Text Input
Slight change to our processing of Ctrl-C, Ctrl-V, and Ctrl-X so that they will not be triggered if Alt is also pressed. This allows entry of AltGr-C, -V, -X when using International keyboard layouts. See D13781 for more details Differential Revision: https://developer.blender.org/D13781 Reviewed by Brecht Van Lommel
This commit is contained in:
parent
57bea57f5e
commit
ccf06fffbc
Notes:
blender-bot
2023-02-14 07:39:44 +01:00
Referenced by issue #91499, Hash simbol entering to fields using Czech keyboard layout
|
@ -3762,7 +3762,12 @@ static void ui_do_but_textedit(
|
|||
case EVT_VKEY:
|
||||
case EVT_XKEY:
|
||||
case EVT_CKEY:
|
||||
if (IS_EVENT_MOD(event, ctrl, oskey)) {
|
||||
#if defined(__APPLE__)
|
||||
if ((event->oskey && !IS_EVENT_MOD(event, shift, alt, ctrl)) ||
|
||||
(event->ctrl && !IS_EVENT_MOD(event, shift, alt, oskey))) {
|
||||
#else
|
||||
if (event->ctrl && !IS_EVENT_MOD(event, shift, alt, oskey)) {
|
||||
#endif
|
||||
if (event->type == EVT_VKEY) {
|
||||
changed = ui_textedit_copypaste(but, data, UI_TEXTEDIT_PASTE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue