summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons/syscons.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-03-11 22:51:05 +0000
committerache <ache@FreeBSD.org>2001-03-11 22:51:05 +0000
commitc710e20072d6904bbbbef48ace13e255b0a68195 (patch)
tree2512533075449cfea967cc9644806d4cb703b27b /sys/dev/syscons/syscons.c
parentef32330c570fe463e3c57d66c01ee23546bf36d3 (diff)
downloadFreeBSD-src-c710e20072d6904bbbbef48ace13e255b0a68195.zip
FreeBSD-src-c710e20072d6904bbbbef48ace13e255b0a68195.tar.gz
Implement keyboard paste
PR: 25499 Submitted by: Gaspar Chilingarov <nm@web.am>
Diffstat (limited to 'sys/dev/syscons/syscons.c')
-rw-r--r--sys/dev/syscons/syscons.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index 631daa4..7742dc6 100644
--- a/sys/dev/syscons/syscons.c
+++ b/sys/dev/syscons/syscons.c
@@ -3066,6 +3066,17 @@ next_code:
}
break;
+ case PASTE:
+#ifndef SC_NO_CUTPASTE
+ /* XXX need to set MOUSE_VISIBLE flag 'cause sc_mouse_paste() */
+ /* and sc_paste() will not operate without it. */
+ i = scp->status;
+ scp->status |= MOUSE_VISIBLE;
+ sc_mouse_paste(scp);
+ scp->status = i;
+#endif
+ break;
+
/* NON-LOCKING KEYS */
case NOP:
case LSH: case RSH: case LCTR: case RCTR:
OpenPOWER on IntegriCloud