fix text shape that displayed 'ctrl' shortcuts
This commit is contained in:
parent
2d92334fe9
commit
fb8e46bb45
3
draw.js
3
draw.js
|
|
@ -231,6 +231,9 @@ var DrawingArea = new Lang.Class({
|
||||||
// stop writing
|
// stop writing
|
||||||
// Clutter.KEY_Return is "Enter" and 65421 is KP_Enter
|
// Clutter.KEY_Return is "Enter" and 65421 is KP_Enter
|
||||||
this._stopWriting();
|
this._stopWriting();
|
||||||
|
} else if (event.has_control_modifier()){
|
||||||
|
// it's a shortcut, do not write text
|
||||||
|
return Clutter.EVENT_PROPAGATE;
|
||||||
} else {
|
} else {
|
||||||
let unicode = event.get_key_unicode();
|
let unicode = event.get_key_unicode();
|
||||||
this.currentElement.text += unicode;
|
this.currentElement.text += unicode;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue