fix text shape that displayed 'ctrl' shortcuts

This commit is contained in:
abakkk 2019-11-25 11:44:18 +01:00
parent 2d92334fe9
commit fb8e46bb45
1 changed files with 3 additions and 0 deletions

View File

@ -231,6 +231,9 @@ var DrawingArea = new Lang.Class({
// stop writing
// Clutter.KEY_Return is "Enter" and 65421 is KP_Enter
this._stopWriting();
} else if (event.has_control_modifier()){
// it's a shortcut, do not write text
return Clutter.EVENT_PROPAGATE;
} else {
let unicode = event.get_key_unicode();
this.currentElement.text += unicode;