Skip to content

Commit

Permalink
Merge pull request #89 from dionisiydk/dev
Browse files Browse the repository at this point in the history
Focus based navigation is added
  • Loading branch information
dionisiydk authored Sep 12, 2017
2 parents 5716114 + af6a1fb commit f9504a9
Show file tree
Hide file tree
Showing 23 changed files with 98 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
testing
isNavigationPanelFocused

^navigationViews anySatisfy: [ :each | each hasKeyboardFocus ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
navigation
switchFocusToNextPane

| focused next |
focused := navigationViews detect: [ :each | each hasKeyboardFocus ] ifNone: [ ^self ].
next := navigationViews after: focused ifAbsent: [ ^self focusActiveTab ].
next takeKeyboardFocus
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
navigation
switchFocusToPreviousPane

| focused next |
focused := navigationViews detect: [ :each | each hasKeyboardFocus ] ifNone: [ ^self ].
next := navigationViews before: focused ifAbsent: [ ^self ].
next takeKeyboardFocus
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testing
hasKeyboardFocus
^super hasKeyboardFocus or: [ table hasKeyboardFocus ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
controlling
takeKeyboardFocus
table takeKeyboardFocus
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
browser: anObject
browser := anObject
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
browser
^ browser
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testing
canBeExecutedInContext: aBrowserContext
^aBrowserContext browser isNavigationPanelFocused
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
execution
execute
browser switchFocusToNextPane
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
execution
readParametersFromContext: aToolContext
super readParametersFromContext: aToolContext.
browser := aToolContext browser
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"commentStamp" : "",
"super" : "CmdCommand",
"category" : "Calypso-Tools-CoreBrowser-Commands-BrowserControlling",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [
"browser"
],
"name" : "ClySwitchFocusToNextBrowserPaneCommand",
"type" : "normal"
}
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
browser: anObject
browser := anObject
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
browser
^ browser
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testing
canBeExecutedInContext: aBrowserContext
^aBrowserContext browser isNavigationPanelFocused
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
execution
execute
browser switchFocusToPreviousPane
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
execution
readParametersFromContext: aToolContext
super readParametersFromContext: aToolContext.
browser := aToolContext browser
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"commentStamp" : "",
"super" : "CmdCommand",
"category" : "Calypso-Tools-CoreBrowser-Commands-BrowserControlling",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [
"browser"
],
"name" : "ClySwitchFocusToPreviousBrowserPaneCommand",
"type" : "normal"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*Calypso-Tools-SystemBrowser
systemBrowserShortcutActivator
<commandActivator>

^CmdShortcutCommandActivator by: Character arrowRight asShortcut for: ClySystemBrowserContext
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name" : "ClySwitchFocusToNextBrowserPaneCommand"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*Calypso-Tools-SystemBrowser
systemBrowserShortcutActivator
<commandActivator>

^CmdShortcutCommandActivator by: Character arrowLeft asShortcut for: ClySystemBrowserContext
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name" : "ClySwitchFocusToPreviousBrowserPaneCommand"
}

0 comments on commit f9504a9

Please sign in to comment.