Skip to content
Draft
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
8cb49bf
ElementaVersion: v12
Traben-0 Mar 29, 2026
7e60e5a
Dependencies: Bump UC
Traben-0 Mar 29, 2026
ac698e9
UIKeyboardEvents: Create new key events
Traben-0 Mar 29, 2026
def76ba
WindowScreen & UIComponent: implement `UScreen.InputHandler` & split …
Traben-0 Mar 29, 2026
0d413f7
Misc: usage suppressions
Traben-0 Mar 29, 2026
8b8f630
API: update
Traben-0 Mar 29, 2026
2060917
Review: fix deprecation text
Traben-0 Apr 6, 2026
92f656f
Review: convert to using `-> Boolean` functions
Traben-0 Apr 6, 2026
e94c8da
Review: comments
Traben-0 Apr 6, 2026
7e90891
Review: no longer use old listeners
Traben-0 Apr 6, 2026
67abf9f
Review: comment
Traben-0 Apr 6, 2026
5314522
Review: formatting
Traben-0 Apr 6, 2026
33f2fdd
Review: inline new functions into Window
Traben-0 Apr 6, 2026
fb410e0
Review: comment
Traben-0 Apr 6, 2026
9df4981
Review: rename functions
Traben-0 Apr 6, 2026
53c76df
Review: OVERRIDE_DEPRECATION -> Deprecation
Traben-0 Apr 6, 2026
78cdc62
Review: replace incorrect toChar() usage with a properly constructed …
Traben-0 Apr 6, 2026
cb51859
Review: call uSuperInputHandler() super methods
Traben-0 Apr 6, 2026
5dbf1ad
Review: fixup comments
Traben-0 Apr 6, 2026
daf24cb
Review: fixup function names
Traben-0 Apr 6, 2026
c5d856e
Review: keyCode -> key
Traben-0 Apr 6, 2026
6371b34
Review: revert unstable diff
Traben-0 Apr 6, 2026
3e478f7
API
Traben-0 Apr 6, 2026
299cb80
fix diff
Traben-0 Apr 6, 2026
df772bc
implement new listeners in AbstractTextInput
Traben-0 Apr 6, 2026
c9e2864
implement new listeners in MarkDownComponent
Traben-0 Apr 6, 2026
4ab4828
Review: drop functions in favour of directly modifying the listener l…
Traben-0 Apr 9, 2026
413d6ae
Review: OVERRIDE_DEPRECATION -> actual deprecation message
Traben-0 Apr 9, 2026
952c49d
Review: remove use of `run { }`
Traben-0 Apr 9, 2026
1412578
Review: uSuperInputHandler() -> super
Traben-0 Apr 9, 2026
1f717a0
Review: remove redundant checks
Traben-0 Apr 9, 2026
5f6f1a6
Review: space
Traben-0 Apr 9, 2026
41039e1
Review: return true
Traben-0 Apr 9, 2026
d749d5c
Review: call handleChar only if keycode wasn't handled
Traben-0 Apr 9, 2026
d6b9656
Review: missing condition
Traben-0 Apr 9, 2026
aa2a4d8
Review: fixup docs
Traben-0 Apr 9, 2026
443e7ba
Review: add isCopy, isCut, and isPaste helper functions to UIKeyEvent
Traben-0 Apr 9, 2026
7b7264c
API
Traben-0 Apr 9, 2026
304a3dd
Review: remove suppressions
Traben-0 Apr 26, 2026
849f494
bump UC
Traben-0 Apr 26, 2026
49d637e
implement UC modifier changes
Traben-0 Apr 26, 2026
75bda3e
suppress deprecated UKeyboard usages and note future changes to be made
Traben-0 Apr 26, 2026
a37641e
api changes
Traben-0 Apr 26, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,22 @@ class MarkdownComponent(
grabWindowFocus()
}

// Pre ElementaVersion.V12 function
@Suppress("DEPRECATION")
onKeyType { _, keyCode ->
if (selection != null && keyCode == UKeyboard.KEY_C && UKeyboard.isCtrlKeyDown()) {
UDesktop.setClipboardString(drawables.selectedText(UKeyboard.isShiftKeyDown()))
}
}

// ElementaVersion.V12+ function
onKeyPressed { keyEvent ->
if (selection != null && keyEvent.key == UKeyboard.KEY_C && keyEvent.modifiers.isCtrl) {
Comment thread
Johni0702 marked this conversation as resolved.
Outdated
UDesktop.setClipboardString(drawables.selectedText(keyEvent.modifiers.isShift))
return@onKeyPressed true
}
return@onKeyPressed false
}
}
configState.onSetValue {
reparse()
Expand Down
Loading