mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-27 08:21:03 +02:00
formatting
This commit is contained in:
parent
79e77b5a10
commit
dbde239a25
@ -461,7 +461,6 @@ class AppGui {
|
||||
}
|
||||
} else if (cmd === 'next_link' || cmd === 'previous_link') {
|
||||
const noteText = this.widget('noteText');
|
||||
// if (noteText.hasFocus) {
|
||||
|
||||
noteText.render();
|
||||
|
||||
@ -480,7 +479,6 @@ class AppGui {
|
||||
);
|
||||
setTimeout(() => this.term_.term().inverse(this.linkSelector_.link), 50);
|
||||
}
|
||||
// }
|
||||
} else if (cmd === 'open_link') {
|
||||
if (this.widget('noteText').hasFocus) {
|
||||
this.linkSelector_.openLink(this.widget('noteText'));
|
||||
@ -779,6 +777,7 @@ class AppGui {
|
||||
// -------------------------------------------------------------------------
|
||||
// Process shortcut and execute associated command
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
const shortcutKey = this.currentShortcutKeys_.join('');
|
||||
const keymapItem = this.keymapItemByKey(shortcutKey);
|
||||
|
||||
@ -792,6 +791,7 @@ class AppGui {
|
||||
this.logger().debug('Shortcut:', shortcutKey, keymapItem);
|
||||
|
||||
this.currentShortcutKeys_ = [];
|
||||
|
||||
if (keymapItem.type === 'function') {
|
||||
this.processFunctionCommand(keymapItem.command);
|
||||
} else if (keymapItem.type === 'prompt') {
|
||||
|
@ -314,7 +314,6 @@ class Application extends BaseApplication {
|
||||
}
|
||||
|
||||
async loadKeymaps() {
|
||||
// NOTE: This is where the shortcuts are mapped. types are stored in app-gui.js. Mine are now already input.
|
||||
const defaultKeyMap = [
|
||||
{ keys: [':'], type: 'function', command: 'enter_command_line_mode' },
|
||||
{ keys: ['TAB'], type: 'function', command: 'focus_next' },
|
||||
|
@ -506,9 +506,9 @@ PAGE_DOWN page_down
|
||||
ENTER activate
|
||||
DELETE, BACKSPACE delete
|
||||
(SPACE) todo toggle $n
|
||||
n next_link
|
||||
b previous_link
|
||||
o open_link
|
||||
n next_link
|
||||
b previous_link
|
||||
o open_link
|
||||
tc toggle_console
|
||||
tm toggle_metadata
|
||||
/ search ""
|
||||
|
@ -8,9 +8,6 @@
|
||||
"name": "Joplin Nextcloud App",
|
||||
"path": "D:/Web/www/nextcloud/apps/joplin"
|
||||
},
|
||||
{
|
||||
"path": "../tkwidgets"
|
||||
}
|
||||
],
|
||||
"settings": {
|
||||
"files.exclude": {
|
||||
|
@ -176,9 +176,9 @@ There are two types of shortcuts: those that manipulate the user interface direc
|
||||
ENTER activate
|
||||
DELETE, BACKSPACE delete
|
||||
(SPACE) todo toggle $n
|
||||
n next_link
|
||||
b previous_link
|
||||
o open_link
|
||||
n next_link
|
||||
b previous_link
|
||||
o open_link
|
||||
tc toggle_console
|
||||
tm toggle_metadata
|
||||
/ search ""
|
||||
|
Loading…
Reference in New Issue
Block a user