mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-06 23:36:31 +02:00
update k key handler in core plugin
This commit is contained in:
@@ -519,12 +519,9 @@ function Plugin(options = {}) {
|
||||
|
||||
function onKeyDownK(e, data, state) {
|
||||
if (!IS_MAC || !data.isCtrl) return
|
||||
|
||||
const { startOffset, startBlock } = state
|
||||
|
||||
return state
|
||||
.transform()
|
||||
.deleteForward(startBlock.length - startOffset)
|
||||
.deleteLineForward()
|
||||
.apply()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user