mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-03 12:04:24 +02:00
Format files using GDScript Toolkit
https://github.com/Scony/godot-gdscript-toolkit
This commit is contained in:
parent
a0237bb5d5
commit
f43149f204
10 changed files with 64 additions and 64 deletions
|
@ -5,7 +5,7 @@ extends Container
|
|||
|
||||
const ESCAPE = 27
|
||||
const BACKSPACE = 8
|
||||
const BEEP = 7
|
||||
const BEEP = 7
|
||||
const SPACE = 32
|
||||
const LEFT_BRACKET = 91
|
||||
const ENTER = 10
|
||||
|
@ -13,6 +13,7 @@ const BACKSPACE_ALT = 127
|
|||
|
||||
onready var viewport = get_viewport()
|
||||
|
||||
|
||||
func _ready():
|
||||
viewport.connect("size_changed", self, "_resize")
|
||||
_resize()
|
||||
|
@ -24,9 +25,9 @@ func _input(event):
|
|||
if event is InputEventKey and event.pressed:
|
||||
var data = PoolByteArray([])
|
||||
accept_event()
|
||||
|
||||
|
||||
# TODO: Handle more of these.
|
||||
if (event.control and event.scancode == KEY_C):
|
||||
if event.control and event.scancode == KEY_C:
|
||||
data.append(3)
|
||||
elif event.unicode:
|
||||
data.append(event.unicode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue