-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
79 additions
and
11 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
packages/RichTextEditing-Core.package/RichTextEditor.class/class/structureKeymap..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
structureKeymap: aString | ||
|
||
structureKeymap := aString |
10 changes: 7 additions & 3 deletions
10
packages/RichTextEditing-Core.package/RichTextEditor.class/class/structureKeymap.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
instance creation | ||
accessing | ||
structureKeymap | ||
"adjust this to your keyboard layout" | ||
^ '!@#$%^&*()' | ||
<preference: 'Structure keyboard shortcuts' | ||
category: #SquidWord | ||
description: 'Represents the keys to use with CTRL+SHIFT to toggle structures. Character at position 1 represents toggling structure 1. Leave as is if you use an american keyboard layout, otherwise change e.g. to pressing shift and all numbers 1 to 0 on your keyboard. Be aware that not all shortcuts might work as they might already be reserved by Squeak.' | ||
type: #String> | ||
|
||
^ structureKeymap ifNil: ['!@#$%^&*()'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/RichTextEditing-Core.package/RichTextEditor.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...RichTextEditing-Tests.package/RichTextEditorTests.class/instance/changeStructureKeymap.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
utilities | ||
changeStructureKeymap | ||
|
||
self textEditor class structureKeymap: self newStructureKeymap |
4 changes: 4 additions & 0 deletions
4
...RichTextEditing-Tests.package/RichTextEditorTests.class/instance/editorStructureKeymap.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
utilities | ||
editorStructureKeymap | ||
|
||
^ self textEditor class structureKeymap |
4 changes: 4 additions & 0 deletions
4
...es/RichTextEditing-Tests.package/RichTextEditorTests.class/instance/newStructureKeymap.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
constants | ||
newStructureKeymap | ||
|
||
^ '$=)(/&%§"!' |
5 changes: 5 additions & 0 deletions
5
packages/RichTextEditing-Tests.package/RichTextEditorTests.class/instance/setUp.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
running | ||
setUp | ||
|
||
super setUp. | ||
self structureKeymap: self editorStructureKeymap |
2 changes: 1 addition & 1 deletion
2
packages/RichTextEditing-Tests.package/RichTextEditorTests.class/instance/setupBoldText.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
resources | ||
running | ||
setupBoldText | ||
|
||
self enterStringOntoTextField: self text. | ||
|
4 changes: 4 additions & 0 deletions
4
...ages/RichTextEditing-Tests.package/RichTextEditorTests.class/instance/structureKeymap..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
structureKeymap: aString | ||
|
||
structureKeymap := aString |
4 changes: 4 additions & 0 deletions
4
packages/RichTextEditing-Tests.package/RichTextEditorTests.class/instance/structureKeymap.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
structureKeymap | ||
|
||
^ structureKeymap |
4 changes: 4 additions & 0 deletions
4
...TextEditing-Tests.package/RichTextEditorTests.class/instance/structureKeymapPreference.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
constants | ||
structureKeymapPreference | ||
|
||
^ (self textEditor class asString , '>>', 'structureKeymap') asSymbol |
5 changes: 5 additions & 0 deletions
5
packages/RichTextEditing-Tests.package/RichTextEditorTests.class/instance/tearDown.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
running | ||
tearDown | ||
|
||
self textEditor class structureKeymap: self structureKeymap. | ||
super tearDown |
6 changes: 6 additions & 0 deletions
6
...diting-Tests.package/RichTextEditorTests.class/instance/testUS183ChangeStructureKeymap.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
acceptance-tests | ||
testUS183ChangeStructureKeymap | ||
|
||
Preferences setFlag: self structureKeymapPreference | ||
toValue: self newStructureKeymap | ||
during: [self assert: self editorStructureKeymap = self newStructureKeymap] |
10 changes: 10 additions & 0 deletions
10
...e/RichTextEditorTests.class/instance/testUS183ChangedStructureKeymapAllowsNewShortcuts.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
acceptance-tests | ||
testUS183ChangedStructureKeymapAllowsNewShortcuts | ||
|
||
self | ||
changeStructureKeymap; | ||
enterStringOntoTextField: self text. | ||
self textEditor selectAll. | ||
self | ||
simulateKeyboardShortcutForStructure1; | ||
assert: self textIsBold |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters