Skip to content

Commit 292e7f3

Browse files
committed
UI: add copy paste keys
1 parent c69d716 commit 292e7f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/platform/sdl/editor.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ void System::editSource(strlib::String &loadPath) {
113113
break;
114114
case SB_KEY_CTRL('c'):
115115
case SB_KEY_CTRL('x'):
116+
case SB_KEY_CTRL(SB_KEY_INSERT):
116117
text = widget->copy(event.key == (int)SB_KEY_CTRL('x'));
117118
if (text) {
118119
setClipboardText(text);
@@ -177,6 +178,7 @@ void System::editSource(strlib::String &loadPath) {
177178
helpWidget->show();
178179
break;
179180
case SB_KEY_CTRL('v'):
181+
case SB_KEY_SHIFT(SB_KEY_INSERT):
180182
text = getClipboardText();
181183
widget->paste(text);
182184
free(text);

0 commit comments

Comments
 (0)